Sha256: 398ca90d9caab2d71c433f202e2c13b7168b4e5f38e8a25c9d3192eea6f67e15
Contents?: true
Size: 678 Bytes
Versions: 37
Compression:
Stored size: 678 Bytes
Contents
module Fog module Compute class HPV2 module MetaParent def parent @parent end def parent=(new_parent) @parent = new_parent end def collection_name if @parent.class == Fog::Compute::HPV2::Image return 'images' elsif @parent.class == Fog::Compute::HPV2::Server return 'servers' else raise 'Metadata is not supported for this model type.' end end def metas_to_hash(metas) hash = {} metas.each { |meta| hash.store(meta.key, meta.value) } hash end end end end end
Version data entries
37 entries across 37 versions & 2 rubygems