Class: SimpleStack::Snapshot

Inherits:
Entity
  • Object
show all
Defined in:
lib/simple_stack/snapshot.rb

Instance Attribute Summary

Attributes inherited from Entity

#hypervisor, #parent, #url

Instance Method Summary collapse

Methods inherited from Entity

#connection, #delete, #info, #initialize, #inspect, #method_missing, #update

Methods included from Cacheable

#cacheable?, #cached_attributes, #reload

Constructor Details

This class inherits a constructor from SimpleStack::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SimpleStack::Entity

Instance Method Details

#revertObject



7
8
9
# File 'lib/simple_stack/snapshot.rb', line 7

def revert
  hypervisor.put "#{url}/revert", {}
end

#useObject



3
4
5
# File 'lib/simple_stack/snapshot.rb', line 3

def use
  revert
end