Class: Fog::Compute::CloudSigma::LibVolume

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/cloudsigma/models/lib_volume.rb

Instance Method Summary collapse

Instance Method Details

#clone(clone_params = {}) ⇒ Object



39
40
41
42
43
44
# File 'lib/fog/cloudsigma/models/lib_volume.rb', line 39

def clone(clone_params={})
  requires :identity
  response = service.clone_volume(identity, clone_params)

  self.class.new(response.body['objects'].first)
end

#reloadObject



34
35
36
37
# File 'lib/fog/cloudsigma/models/lib_volume.rb', line 34

def reload
  requires :identity
  collection.get(identity)
end