Sha256: 3393d0a51bd1c49851278742ebaf16b015244b7bd1054aae311554af8bbae363

Contents?: true

Size: 607 Bytes

Versions: 33

Compression:

Stored size: 607 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', 'volumeType'
              @response[name] = value
            when 'createTime'
              @response[name] = Time.parse(value)
            when 'size', 'iops'
              @response[name] = value.to_i
            when 'encrypted'
              @response[name] = (value == 'true')
            end
          end
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 5 rubygems

Version Path
fog-aws-0.7.4 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.7.3 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.7.2 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.6.0 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.5.0 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.4.1 lib/fog/aws/parsers/compute/create_volume.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.4.0 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.3.0 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.2.2 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.2.0 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.1.2 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.1.1 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.1.0 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.0.8 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.0.7 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.0.6 lib/fog/aws/parsers/compute/create_volume.rb
fog-aws-0.0.5 lib/fog/aws/parsers/compute/create_volume.rb
fog-1.26.0 lib/fog/aws/parsers/compute/create_volume.rb
fog-1.25.0 lib/fog/aws/parsers/compute/create_volume.rb