Sha256: 19ce785ed95a6a412ef10506be9d039b7ccad6ba5372ca8fb08f47fa32ce2144

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

require 'fog/core/model'

module Fog
  module VirtualBox
    class Compute

      class MediumFormat < Fog::Model

        identity :id

        # attribute :capabilities
        attribute :name

        private

        def raw
          @raw
        end
        
        def raw=(new_raw)
          @raw = new_raw
          raw_attributes = {}
          for key in [:id, :name]
            raw_attributes[key] = @raw.send(key)
          end
          merge_attributes(raw_attributes)
        end

      end

    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/compute/models/virtual_box/medium_format.rb
fog-0.8.1 lib/fog/compute/models/virtual_box/medium_format.rb
fog-0.8.0 lib/fog/compute/models/virtual_box/medium_format.rb
fog-0.7.2 lib/fog/compute/models/virtual_box/medium_format.rb
fog-0.7.1 lib/fog/compute/models/virtual_box/medium_format.rb
fog-0.7.0 lib/fog/compute/models/virtual_box/medium_format.rb