Methods

Class/Module Index [+]

Quicksearch

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 = service.get_groups(href).body
  data = if data == ""
           ""
         else
           data[:Groups] ? data[:Groups][:Group] : data
         end
  if data == "" || !data.is_a?(Array) && data[:type] == "application/vnd.tmrk.cloud.layoutRow"
    nil
  else
    load(data)
  end
end
get(uri) click to toggle source
# File lib/fog/ecloud/models/compute/groups.rb, line 26
def get(uri)
  data = service.get_group(uri).body
  if data == ""
    nil
  else
    new(data)
  end
rescue Excon::Errors::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.