Class: HP::Cloud::Ports
- Inherits:
-
FogCollection
- Object
- FogCollection
- HP::Cloud::Ports
- Defined in:
- lib/hpcloud/ports.rb
Instance Attribute Summary
Attributes inherited from FogCollection
Instance Method Summary collapse
- #create(item = nil) ⇒ Object
-
#initialize ⇒ Ports
constructor
A new instance of Ports.
Methods inherited from FogCollection
#empty?, #filter, #get, #get_array, #matches, #unique
Constructor Details
#initialize ⇒ Ports
Returns a new instance of Ports.
28 29 30 31 |
# File 'lib/hpcloud/ports.rb', line 28 def initialize super("port") @items = @connection.network.ports end |
Instance Method Details
#create(item = nil) ⇒ Object
33 34 35 |
# File 'lib/hpcloud/ports.rb', line 33 def create(item = nil) return PortHelper.new(@connection, item) end |