Class: Ey::Core::Client::SlotComponent

Inherits:
Model
  • Object
show all
Extended by:
Associations
Defined in:
lib/vendor/core/ey-core/models/slot_component.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, #update!, #url

Instance Method Details

#save!Object



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/vendor/core/ey-core/models/slot_component.rb', line 16

def save!
  raise "Cannot create new slot components" if new_record?

  params = {
    "id" => id,
    "slot_component" => {
      "configuration" => configuration,
    }
  }

  merge_attributes(self.connection.update_slot_component(params).body["slot_component"])
end