Sha256: 03c1aea8b20f09aa6f28523a466e57603e71a06522b586b813e7073d398cbc59

Contents?: true

Size: 510 Bytes

Versions: 35

Compression:

Stored size: 510 Bytes

Contents

module Fog
  module Parsers
    module Compute
      module AWS

        class CreateVolume < Fog::Parsers::Base

          def end_element(name)
            case name
            when 'availabilityZone', 'requestId', 'snapshotId', 'status', 'volumeId'
              @response[name] = value
            when 'createTime'
              @response[name] = Time.parse(value)
            when 'size'
              @response[name] = value.to_i
            end
          end

        end

      end
    end
  end
end

Version data entries

35 entries across 35 versions & 9 rubygems

Version Path
fog-1.5.0 lib/fog/aws/parsers/compute/create_volume.rb
rackspace-fog-1.4.2 lib/rackspace-fog/aws/parsers/compute/create_volume.rb
fog-1.4.0 lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
michiels-fog-1.3.1 lib/fog/aws/parsers/compute/create_volume.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
fog-1.3.1 lib/fog/aws/parsers/compute/create_volume.rb
fog-1.3.0 lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
fog-1.2.0 lib/fog/aws/parsers/compute/create_volume.rb
ktheory-fog-1.1.2 lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/create_volume.rb
fog-1.1.2 lib/fog/aws/parsers/compute/create_volume.rb
fog_tractical-1.1.4 lib/fog/aws/parsers/compute/create_volume.rb
fog_tractical-1.1.3 lib/fog/aws/parsers/compute/create_volume.rb