Sha256: bcefe46e04b89903b56b8375ae6e3f6a567f860f60064bd4b85ffde6e007c06f

Contents?: true

Size: 585 Bytes

Versions: 6

Compression:

Stored size: 585 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module Compute
        class CreateSnapshot < Fog::Parsers::Base
          def end_element(name)
            case name
            when 'description', 'ownerId', 'progress', 'snapshotId', 'status', 'volumeId'
              @response[name] = value
            when 'requestId'
              @response[name] = value
            when 'startTime'
              @response[name] = Time.parse(value)
            when 'volumeSize'
              @response[name] = value.to_i
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-aws-3.5.2 lib/fog/aws/parsers/compute/create_snapshot.rb
fog-aws-3.5.1 lib/fog/aws/parsers/compute/create_snapshot.rb
fog-aws-3.5.0 lib/fog/aws/parsers/compute/create_snapshot.rb
fog-aws-3.4.0 lib/fog/aws/parsers/compute/create_snapshot.rb
fog-aws-3.3.0 lib/fog/aws/parsers/compute/create_snapshot.rb
fog-aws-3.2.0 lib/fog/aws/parsers/compute/create_snapshot.rb