Sha256: 8efc56ee7171fc15abc5555462e3fad0e61751365a66ce40e97eae7853f56373

Contents?: true

Size: 282 Bytes

Versions: 76

Compression:

Stored size: 282 Bytes

Contents

require 'fog/core/model'

module Fog
  module Terremark
    module Shared

      class Image < Fog::Model

        identity :id

        attribute :name

      end

      private

      def href=(new_href)
        self.id = new_href.split('/').last.to_i
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 11 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 lib/fog/terremark/models/shared/image.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/terremark/models/shared/image.rb
fog-1.15.0 lib/fog/terremark/models/shared/image.rb
gapinc-fog-1.14.0 lib/fog/terremark/models/shared/image.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/terremark/models/shared/image.rb
fog-1.14.0 lib/fog/terremark/models/shared/image.rb
fog-1.13.0 lib/fog/terremark/models/shared/image.rb
gapinc-fog-1.12.1.2 lib/fog/terremark/models/shared/image.rb
gapinc-fog-1.12.1.1 lib/fog/terremark/models/shared/image.rb
gapinc-fog-1.12.1a lib/fog/terremark/models/shared/image.rb
gapinc-fog-1.12.1 lib/fog/terremark/models/shared/image.rb
fog-1.12.1 lib/fog/terremark/models/shared/image.rb
fog-1.12.0 lib/fog/terremark/models/shared/image.rb
hpfog-0.0.20 lib/fog/terremark/models/shared/image.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/terremark/models/shared/image.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/terremark/models/shared/image.rb
fog-nirvanix-1.8.2 lib/fog/terremark/models/shared/image.rb
fog-1.11.1 lib/fog/terremark/models/shared/image.rb
fog-1.11.0 lib/fog/terremark/models/shared/image.rb
fog-nirvanix-1.8.1 lib/fog/terremark/models/shared/image.rb