Class: HP::Cloud::Dnss

Inherits:
FogCollection show all
Defined in:
lib/hpcloud/dnss.rb

Instance Attribute Summary

Attributes inherited from FogCollection

#items, #name

Instance Method Summary collapse

Methods inherited from FogCollection

#empty?, #filter, #get, #get_array, #matches, #unique

Constructor Details

#initializeDnss

Returns a new instance of Dnss.



28
29
30
31
# File 'lib/hpcloud/dnss.rb', line 28

def initialize
  super("dns")
  @items = @connection.dns.list_domains.body["domains"]
end

Instance Method Details

#create(item = nil) ⇒ Object



33
34
35
# File 'lib/hpcloud/dnss.rb', line 33

def create(item = nil)
  return DnsHelper.new(@connection, item)
end