Class: Ey::Core::Client::ClusterUpdate

Inherits:
Model
  • Object
show all
Extended by:
Associations
Defined in:
lib/vendor/core/ey-core/models/cluster_update.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



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/vendor/core/ey-core/models/cluster_update.rb', line 21

def save!
  params = {
    "url"     => self.collection.url,
    "cluster" => self.cluster_id,
  }

  if new_record?
    connection.requests.new(self.connection.create_cluster_update(params).body["request"])
  else raise NotImplementedError # update
  end
end