Sha256: 325f7ae952b11d86ff677756b7cdd0dd808ad80b3a0c25551b9dbfcee8a72748

Contents?: true

Size: 713 Bytes

Versions: 7

Compression:

Stored size: 713 Bytes

Contents

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

        identity :href, :aliases => :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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/models/ecloud/catalog_item.rb
fog-0.8.1 lib/fog/compute/models/ecloud/catalog_item.rb
fog-0.8.0 lib/fog/compute/models/ecloud/catalog_item.rb
fog-0.7.2 lib/fog/compute/models/ecloud/catalog_item.rb
fog-0.7.1 lib/fog/compute/models/ecloud/catalog_item.rb
fog-0.7.0 lib/fog/compute/models/ecloud/catalog_item.rb
fog-0.6.0 lib/fog/compute/models/ecloud/catalog_item.rb