class Fog::Compute::Ecloud::Groups

Public Instance Methods

all() click to toggle source
# File lib/fog/ecloud/models/compute/groups.rb, line 12
def all
  data = connection.get_groups(href).body
  data = data[:Groups] ? data[:Groups][:Group] : data
  load(data)
end
get(uri) click to toggle source
# File lib/fog/ecloud/models/compute/groups.rb, line 18
def get(uri)
  if data = connection.get_group(uri)
    new(data.body)
  end
rescue Fog::Errors::NotFound
  nil
end