Sha256: 00fa135a3b6caee214467822a6138b93911a046f53aed8c4a77e80ba0fe84369

Contents?: true

Size: 770 Bytes

Versions: 30

Compression:

Stored size: 770 Bytes

Contents

module Fog
  module Vcloud
    module Terremark
      module Ecloud
        class CatalogItem < Fog::Vcloud::Model

          identity :href, :Href

          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
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.28 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.27 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.26 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.25 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.24 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
tecnh-fog-0.2.23.vpc lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.23 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.22 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.21 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.20 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.19 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.18 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.17 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.16 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.15 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.14 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.13 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.12 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb
fog-0.2.11 lib/fog/vcloud/terremark/ecloud/models/catalog_item.rb