Class: EY::SnapshotMinder::Backend::Real

Inherits:
Object
  • Object
show all
Defined in:
lib/ey-flex/snapshot_minder.rb

Instance Method Summary collapse

Constructor Details

#initializeReal

Returns a new instance of Real.



42
43
44
# File 'lib/ey-flex/snapshot_minder.rb', line 42

def initialize
  @snapshots = EY::InstanceAPIClient::Snapshots.new
end

Instance Method Details

#listObject



54
55
56
# File 'lib/ey-flex/snapshot_minder.rb', line 54

def list
  @snapshots.list
end

#snapshotObject



50
51
52
# File 'lib/ey-flex/snapshot_minder.rb', line 50

def snapshot
  @snapshots.request
end

#wait(seconds) ⇒ Object



46
47
48
# File 'lib/ey-flex/snapshot_minder.rb', line 46

def wait(seconds)
  sleep(seconds)
end