Sha256: e4f5c9db950957fd2990518afb7ffc4ca006c9444f211d4c2d756d5dd9f0fee3

Contents?: true

Size: 773 Bytes

Versions: 26

Compression:

Stored size: 773 Bytes

Contents

module Fog
  module Vcloud
    class Compute
      class CatalogItem < Fog::Vcloud::Model

        identity :href, :aliases => :Href
        attribute :links, :aliases => :Link, :type => :array
        ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd

        attribute :type
        attribute :name
        attribute :entity, :aliases => :Entity
        attribute :link, :aliases => :Link
        attribute :property, :aliases => :Property

        def customization_options
          load_unless_loaded!
          if data = connection.get_customization_options( link[:href] ).body
            data.delete_if { |key, value| [:xmlns_i, :xmlns].include?(key) }
            data
          else
            nil
          end
        end

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 12 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/vcloud/models/compute/catalog_item.rb
fog-nirvanix-1.8.1 lib/fog/vcloud/models/compute/catalog_item.rb
fog-parser-fix-1.6.1 lib/fog/vcloud/models/compute/catalog_item.rb
fog-test-again-1.6.0 lib/fog/vcloud/models/compute/catalog_item.rb
fog-parser-fix-1.6.0 lib/fog/vcloud/models/compute/catalog_item.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/vcloud/models/compute/catalog_item.rb
fog-sgonyea-1.8.1 lib/fog/vcloud/models/compute/catalog_item.rb
fog-1.8.0 lib/fog/vcloud/models/compute/catalog_item.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/vcloud/models/compute/catalog_item.rb
fog-1.7.0 lib/fog/vcloud/models/compute/catalog_item.rb
fog-1.6.0 lib/fog/vcloud/models/compute/catalog_item.rb
fog-1.5.0 lib/fog/vcloud/models/compute/catalog_item.rb
rackspace-fog-1.4.2 lib/rackspace-fog/vcloud/models/compute/catalog_item.rb
fog-1.4.0 lib/fog/vcloud/models/compute/catalog_item.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog_item.rb
michiels-fog-1.3.1 lib/fog/vcloud/models/compute/catalog_item.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/vcloud/models/compute/catalog_item.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/catalog_item.rb
fog-1.3.1 lib/fog/vcloud/models/compute/catalog_item.rb
fog-1.3.0 lib/fog/vcloud/models/compute/catalog_item.rb