Class: Wes::Data::API::Model::Address
- Defined in:
- lib/wes/data/api/model/address.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Wes::Data::API::Model::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wes::Data::API::Model::Base
Instance Method Details
#id ⇒ Object
20 21 22 |
# File 'lib/wes/data/api/model/address.rb', line 20 def id attributes.creator_auth0_id end |
#update(changes) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/wes/data/api/model/address.rb', line 8 def update(changes) route = [ routes.creator_user, creator_auth0_id, routes.address ].join('/') @attributes = client.put( route, @attributes.to_h.merge(changes) ).first self end |