Class: HP::Cloud::Subnets

Inherits:
FogCollection show all
Defined in:
lib/hpcloud/subnets.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

#initializeSubnets

Returns a new instance of Subnets.



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

def initialize
  super("subnet")
  @items = @connection.network.subnets
end

Instance Method Details

#create(item = nil) ⇒ Object



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

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