Class: TheCity::UserAddress
- Defined in:
- lib/api/user_address.rb
Instance Attribute Summary
Attributes inherited from ApiObject
#error_messages, #marked_for_destruction
Instance Method Summary collapse
- #home_address? ⇒ Boolean
-
#initialize(json_data = nil) ⇒ UserAddress
constructor
Constructor.
Methods inherited from ApiObject
__tc_attributes, #delete, #initialize_from_json_object, #is_deleted?, #save, #set_attributes, tc_attr_accessor, #to_attributes
Constructor Details
#initialize(json_data = nil) ⇒ UserAddress
Constructor.
23 24 25 26 |
# File 'lib/api/user_address.rb', line 23 def initialize(json_data = nil) @writer_object = UserAddressWriter initialize_from_json_object(json_data) unless json_data.nil? end |
Instance Method Details
#home_address? ⇒ Boolean
28 29 30 |
# File 'lib/api/user_address.rb', line 28 def home_address? self.location_type.to_s.downcase == 'home' end |