old_contents: # -*- coding: utf-8 -*-
  """
      mackerel.host
      ~~~~~~~~~~~~~
  
      Mackerel client implemented by Pyton.
  
      Ported from `mackerel-client-ruby`.
      <https://github.com/mackerelio/mackerel-client-ruby>
  
      :copyright: (c) 2014 Hatena, All rights reserved.
      :copyright: (c) 2015 Shinya Ohyanagi, All rights reserved.
      :license: BSD, see LICENSE for more details.
  """
  import re
  
  
  class Host(object):
      MACKEREL_INTERFACE_NAME_PATTERN = re.compile(r'^eth\d')
  
      def __init__(self, **kwargs):
          self.args = kwargs
          self.name = kwargs.get('name', None)
          self.meta = kwargs.get('meta', None)
          self.type = kwargs.get('type', None)
          self.status = kwargs.get('status', None)
          self.memo = kwargs.get('memo', None)
          self.is_retired = kwargs.get('isRetired', None)
          self.id = kwargs.get('id', None)
          self.created_at = kwargs.get('createdAt', None)
          self.roles = kwargs.get('roles', None)
          self.interfaces = kwargs.get('interfaces', None)
  
      def ip_addr(self):
          pass
  
      def mac_addr(self):
          pass
  
  
new_contents: # -*- coding: utf-8 -*-
  """
      mackerel.host
      ~~~~~~~~~~~~~
  
      Mackerel client implemented by Pyton.
  
      Ported from `mackerel-client-ruby`.
      <https://github.com/mackerelio/mackerel-client-ruby>
  
      :copyright: (c) 2014 Hatena, All rights reserved.
      :copyright: (c) 2015 Shinya Ohyanagi, All rights reserved.
      :license: BSD, see LICENSE for more details.
  """
  import re
  
  
  class Host(object):
      MACKEREL_INTERFACE_NAME_PATTERN = re.compile(r'^eth\d')
  
      def __init__(self, **kwargs):
          self.args = kwargs
          self.name = kwargs.get('name', None)
          self.meta = kwargs.get('meta', None)
          self.type = kwargs.get('type', None)
          self.status = kwargs.get('status', None)
          self.memo = kwargs.get('memo', None)
          self.is_retired = kwargs.get('isRetired', None)
          self.id = kwargs.get('id', None)
          self.created_at = kwargs.get('createdAt', None)
          self.roles = kwargs.get('roles', None)
          self.interfaces = kwargs.get('interfaces', None)
  
      def ip_addr(self):
          pass
  
      def mac_addr(self):
          pass
  
      def __repr__(self):
          repr = '<Host('
          repr += 'name={0}, meta={1}, type={2}, status={3}, memo={4},'
          repr += 'is_retired={5}, id={6}, created_at={7}, roles={8},'
          repr += 'interfaces={9})'
          return repr.format(self.name, self.meta, self.type, self.status,
                             self.memo, self.is_retired, self.id, 
                             self.created_at, self.roles, self.interfaces)
  
subject: Add __repr__().