Methods

Files

Class/Module Index [+]

Quicksearch

Fog::Compute::Glesys::Ips

Public Instance Methods

all() click to toggle source
# File lib/fog/glesys/models/compute/ips.rb, line 14
def all
  data = connection.ip_list_own.body['response']['iplist']
  load(data)
end
get(identifier) click to toggle source
# File lib/fog/glesys/models/compute/ips.rb, line 19
def get(identifier)
  return nil if identifier.nil? || identifier == ""
  
  self.new( :serverid => identifier )          

  data  = connection.ip_list_own(:serverid => identifier).body['response']
  if data['iplist'].empty?
    nil 
  else
    new(data['iplist'].first)
  end 
end
new(attributes = {}) click to toggle source
# File lib/fog/glesys/models/compute/ips.rb, line 32
def new(attributes = {})
  super({ :serverid => serverid }.merge!(attributes))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.