Class: Yardi::Model::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/yardi/model/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property) ⇒ Property

Returns a new instance of Property.



7
8
9
10
11
12
13
14
15
# File 'lib/yardi/model/property.rb', line 7

def initialize(property)
  @timezone = property['TimeZone']
  @remote_id = property['Code']
  @marketing_name = property['MarketingName']
  @address = format_address(property['AddressLine1'], property['AddressLine2'], property['AddressLine3'])
  @city = property['City']
  @state = property['State']
  @postal_code = property['PostalCode']
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



4
5
6
# File 'lib/yardi/model/property.rb', line 4

def address
  @address
end

#cityObject (readonly)

Returns the value of attribute city.



4
5
6
# File 'lib/yardi/model/property.rb', line 4

def city
  @city
end

#marketing_nameObject (readonly)

Returns the value of attribute marketing_name.



4
5
6
# File 'lib/yardi/model/property.rb', line 4

def marketing_name
  @marketing_name
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



4
5
6
# File 'lib/yardi/model/property.rb', line 4

def postal_code
  @postal_code
end

#remote_idObject (readonly)

Returns the value of attribute remote_id.



4
5
6
# File 'lib/yardi/model/property.rb', line 4

def remote_id
  @remote_id
end

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'lib/yardi/model/property.rb', line 4

def state
  @state
end

#timezoneObject (readonly)

Returns the value of attribute timezone.



4
5
6
# File 'lib/yardi/model/property.rb', line 4

def timezone
  @timezone
end