Class: Ey::Core::Client::ProviderLocation
- Extended by:
- Associations
- Defined in:
- lib/ey-core/models/provider_location.rb
Instance Method Summary collapse
Methods included from Associations
assoc_accessor, assoc_coverage, assoc_reader, assoc_writer, associations, collection_reader
Methods inherited from Model
#destroy, range_parser, #save, #to_s, #update!, #url
Instance Method Details
#save! ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ey-core/models/provider_location.rb', line 12 def save! params = { "id" => self.id, "provider_location" => { "limits" => self.limits, }, } unless new_record? merge_attributes(self.connection.update_provider_location(params).body["provider_location"]) end end |