Module: Fog::Storage::HP::MetaParent

Included in:
Meta, Metadata
Defined in:
lib/fog/hp/models/storage/meta_parent.rb

Instance Method Summary collapse

Instance Method Details

#metas_to_hash(metas) ⇒ Object



14
15
16
17
18
# File 'lib/fog/hp/models/storage/meta_parent.rb', line 14

def metas_to_hash(metas)
  hash = {}
  metas.each { |meta| hash.store(meta.key, meta.value) }
  hash
end

#parentObject



6
7
8
# File 'lib/fog/hp/models/storage/meta_parent.rb', line 6

def parent
  @parent
end

#parent=(new_parent) ⇒ Object



10
11
12
# File 'lib/fog/hp/models/storage/meta_parent.rb', line 10

def parent=(new_parent)
  @parent = new_parent
end