Class: Fog::Orchestration::OpenStack::Stacks
- Inherits:
-
Collection
- Object
- Collection
- Fog::Orchestration::OpenStack::Stacks
- Defined in:
- lib/fog/openstack/models/orchestration/stacks.rb
Instance Method Summary collapse
- #all ⇒ Object
- #find_by_id(id) ⇒ Object (also: #get)
Instance Method Details
#all ⇒ Object
10 11 12 |
# File 'lib/fog/openstack/models/orchestration/stacks.rb', line 10 def all load(service.list_stacks.body['stacks']) end |
#find_by_id(id) ⇒ Object Also known as: get
14 15 16 |
# File 'lib/fog/openstack/models/orchestration/stacks.rb', line 14 def find_by_id(id) self.find {|stack| stack.id == id} end |