Class: Vra::Deployments

Inherits:
Object
  • Object
show all
Defined in:
lib/vra/deployments.rb

Overview

class that represents the Deployments Object

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Deployments

Returns a new instance of Deployments.



22
23
24
# File 'lib/vra/deployments.rb', line 22

def initialize(client)
  @client = client
end

Class Method Details

.all(client) ⇒ Object



35
36
37
# File 'lib/vra/deployments.rb', line 35

def all(client)
  new(client).all
end

.by_id(client, id) ⇒ Object



39
40
41
# File 'lib/vra/deployments.rb', line 39

def by_id(client, id)
  new(client).by_id(id)
end

Instance Method Details

#allObject



30
31
32
# File 'lib/vra/deployments.rb', line 30

def all
  fetch_all_resources
end

#by_id(dep_id) ⇒ Object



26
27
28
# File 'lib/vra/deployments.rb', line 26

def by_id(dep_id)
  Vra::Deployment.new(client, id: dep_id)
end