class Fog::Compute::ProfitBricks::Groups

Public Instance Methods

all() click to toggle source
# File lib/fog/profitbricks/models/compute/groups.rb, line 11
def all()
  result = service.get_all_groups()

  load(result.body['items'].each { |group| flatten(group) })
end
get(group_id) click to toggle source
# File lib/fog/profitbricks/models/compute/groups.rb, line 17
def get(group_id)
  response = service.get_group(group_id)
  group = response.body

  new(flatten(group))
end