Class: Fog::Generators::Compute::VcloudDirector::MetadataV51

Inherits:
MetadataBase
  • Object
show all
Defined in:
lib/fog/vcloud_director/generators/compute/metadata.rb

Instance Attribute Summary

Attributes inherited from MetadataBase

#attrs

Instance Method Summary collapse

Methods inherited from MetadataBase

#add_item, #generate_xml, #header, #initialize, #tail

Constructor Details

This class inherits a constructor from Fog::Generators::Compute::VcloudDirector::MetadataBase

Instance Method Details

#metadata_entry(key, value) ⇒ Object



79
80
81
82
83
84
85
86
87
88
# File 'lib/fog/vcloud_director/generators/compute/metadata.rb', line 79

def (key, value)
  <<-END
  <MetadataEntry type="application/vnd.vmware.vcloud.metadata.value+xml">
    <Key>#{key}</Key>
    <TypedValue xsi:type="MetadataStringValue">
      <Value>#{value}</Value>
    </TypedValue>
  </MetadataEntry>
  END
end