Class: Fog::Compute::HP::Meta
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::HP::Meta
show all
- Includes:
- MetaParent
- Defined in:
- lib/fog/hp/models/compute/meta.rb
Instance Method Summary
collapse
Methods included from MetaParent
#collection_name, #metas_to_hash, #parent, #parent=
Instance Method Details
#destroy ⇒ Object
13
14
15
16
17
|
# File 'lib/fog/hp/models/compute/meta.rb', line 13
def destroy
requires :identity
service.delete_meta(collection_name, @parent.id, key)
true
end
|
#save ⇒ Object
19
20
21
22
23
|
# File 'lib/fog/hp/models/compute/meta.rb', line 19
def save
requires :identity, :value
service.update_meta(collection_name, @parent.id, key, value)
true
end
|