Class: HP::Cloud::Snapshots

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

#initializeSnapshots

Returns a new instance of Snapshots.



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

def initialize()
  super("snapshot")
  @items = @connection.block.snapshots
end

Instance Method Details

#create(item = nil) ⇒ Object



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

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