Sha256: 1e5934d136a51db6ee72598ee9515728b2962ad5ed0a0f5e90e13f317ac60d8e

Contents?: true

Size: 582 Bytes

Versions: 13

Compression:

Stored size: 582 Bytes

Contents

require 'fog/core/model'
require 'fog/openstack/models/meta_parent'

module Fog
  module Compute
    class OpenStack
      class Metadatum < Fog::Model

        include Fog::Compute::OpenStack::MetaParent

        identity :key
        attribute :value

        def destroy
          requires :identity
          connection.delete_meta(collection_name, @parent.id, key)
          true
        end

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

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/openstack/models/compute/metadatum.rb
fog-nirvanix-1.8.1 lib/fog/openstack/models/compute/metadatum.rb
fog-parser-fix-1.6.1 lib/fog/openstack/models/compute/metadatum.rb
fog-test-again-1.6.0 lib/fog/openstack/models/compute/metadatum.rb
fog-parser-fix-1.6.0 lib/fog/openstack/models/compute/metadatum.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/openstack/models/compute/metadatum.rb
fog-sgonyea-1.8.1 lib/fog/openstack/models/compute/metadatum.rb
fog-1.8.0 lib/fog/openstack/models/compute/metadatum.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/openstack/models/compute/metadatum.rb
fog-1.7.0 lib/fog/openstack/models/compute/metadatum.rb
fog-1.6.0 lib/fog/openstack/models/compute/metadatum.rb
fog-1.5.0 lib/fog/openstack/models/compute/metadatum.rb
fog-1.4.0 lib/fog/openstack/models/compute/metadatum.rb