Class: Fog::Compute::RackspaceV2::Metadatum

Inherits:
Model
  • Object
show all
Includes:
MetaParent
Defined in:
lib/fog/rackspace/models/compute_v2/metadatum.rb

Instance Method Summary collapse

Methods included from MetaParent

#collection_name, #metas_to_hash, #parent, #parent=

Instance Method Details

#destroyBoolean

Remove metadatum from server

Returns:

  • (Boolean)

    return true if metadatum is deleting

Raises:



19
20
21
22
23
# File 'lib/fog/rackspace/models/compute_v2/metadatum.rb', line 19

def destroy
  requires :identity
  service.(collection_name, parent.id, key)
  true
end

#saveBoolean

Save metadatum on server

Returns:

  • (Boolean)

    return true if metadatum is saving

Raises:



31
32
33
34
35
# File 'lib/fog/rackspace/models/compute_v2/metadatum.rb', line 31

def save
  requires :identity, :value
  service.(collection_name, parent.id, key, value)
  true
end