Class: Fog::Compute::VcloudDirector::Media

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/vcloud_director/models/compute/media.rb

Instance Method Summary collapse

Methods inherited from Model

#initialize, #inspect, #lazy_load_attrs, #make_attr_loaded_method, #make_lazy_load_method

Constructor Details

This class inherits a constructor from Fog::Compute::VcloudDirector::Model

Instance Method Details

#destroyBoolean

Returns:

  • (Boolean)


18
19
20
21
22
# File 'lib/fog/vcloud_director/models/compute/media.rb', line 18

def destroy
  requires :id
  response = service.delete_media(id)
  service.process_task(response.body)
end