Class: Shiro::Deployment

Inherits:
Object
  • Object
show all
Defined in:
lib/shiro/deployment.rb

Class Method Summary collapse

Class Method Details

.listObject



3
4
5
# File 'lib/shiro/deployment.rb', line 3

def self.list
  client.get("/deployments").parsed_response
end

.retrieve(id) ⇒ Object



7
8
9
# File 'lib/shiro/deployment.rb', line 7

def self.retrieve(id)
  client.get("/deployments/#{id}").parsed_response
end

.update(id, attributes) ⇒ Object



11
12
13
# File 'lib/shiro/deployment.rb', line 11

def self.update(id, attributes)
  client.patch("/deployments/#{id}", attributes).parsed_response
end