Class: Vra::Deployments
- Inherits:
-
Object
- Object
- Vra::Deployments
- Defined in:
- lib/vra/deployments.rb
Overview
class that represents the Deployments Object
Class Method Summary collapse
Instance Method Summary collapse
- #all ⇒ Object
- #by_id(dep_id) ⇒ Object
-
#initialize(client) ⇒ Deployments
constructor
A new instance of Deployments.
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
#all ⇒ Object
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 |