Class: Ey::Core::Client::Deployment

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

#requestObject



23
24
25
# File 'lib/ey-core/models/deployment.rb', line 23

def request
  self.request_url && self.connection.requests.get(self.request_url.split("/").last)
end

#timeout(message = nil) ⇒ Object



27
28
29
# File 'lib/ey-core/models/deployment.rb', line 27

def timeout(message=nil)
  merge_attributes(self.connection.timeout_deployment("id" => self.id, "message" => message).body["deployment"])
end