Class: Yardi::Model::Property
- Inherits:
-
Object
- Object
- Yardi::Model::Property
- Defined in:
- lib/yardi/model/property.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#marketing_name ⇒ Object
readonly
Returns the value of attribute marketing_name.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#remote_id ⇒ Object
readonly
Returns the value of attribute remote_id.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
Instance Method Summary collapse
-
#initialize(property) ⇒ Property
constructor
A new instance of Property.
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
4 5 6 |
# File 'lib/yardi/model/property.rb', line 4 def address @address end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
4 5 6 |
# File 'lib/yardi/model/property.rb', line 4 def city @city end |
#marketing_name ⇒ Object (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_code ⇒ Object (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_id ⇒ Object (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 |
#state ⇒ Object (readonly)
Returns the value of attribute state.
4 5 6 |
# File 'lib/yardi/model/property.rb', line 4 def state @state end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone.
4 5 6 |
# File 'lib/yardi/model/property.rb', line 4 def timezone @timezone end |