Class: Fog::Rackspace::AutoScale::Groups
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::AutoScale::Groups
- Defined in:
- lib/fog/rackspace/models/auto_scale/groups.rb
Instance Method Summary collapse
-
#all ⇒ Fog::Rackspace::AutoScale::Groups
Returns list of autoscale groups.
-
#get(group_id) ⇒ Fog::Rackspace::AutoScale::Group
Returns an individual autoscale group.
Instance Method Details
#all ⇒ Fog::Rackspace::AutoScale::Groups
Returns list of autoscale groups
20 21 22 23 |
# File 'lib/fog/rackspace/models/auto_scale/groups.rb', line 20 def all data = service.list_groups.body['groups'] load(data) end |
#get(group_id) ⇒ Fog::Rackspace::AutoScale::Group
Returns an individual autoscale group
36 37 38 39 40 41 |
# File 'lib/fog/rackspace/models/auto_scale/groups.rb', line 36 def get(group_id) data = service.get_group(group_id).body['group'] new(data) rescue Fog::Rackspace::AutoScale::NotFound nil end |