Sha256: f1605bb9d22be4fa19ebe3bf5359bddbf810e10f08acfc04bd926aa992c26ca4

Contents?: true

Size: 639 Bytes

Versions: 92

Compression:

Stored size: 639 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module EC2

        class DescribeSnapshots < Fog::Parsers::Base

          def reset
            @response = { 'snapshotSet' => [] }
            @snapshot = {}
          end

          def end_element(name)
            case name
            when 'item'
              @response['snapshotSet'] << @snapshot
              @snapshot = {}
            when 'progress', 'snapshotId', 'status', 'volumeId'
              @snapshot[name] = @value
            when 'startTime'
              @snapshot[name] = Time.parse(@value)
            end
          end

        end

      end
    end
  end
end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
geemus-fog-0.0.0 lib/fog/aws/parsers/ec2/describe_snapshots.rb
geemus-fog-0.0.1 lib/fog/aws/parsers/ec2/describe_snapshots.rb
geemus-fog-0.0.3 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.91 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.90 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.89 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.88 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.87 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.86 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.85 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.84 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.83 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.82 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.81 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.80 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.79 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.78 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.77 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.76 lib/fog/aws/parsers/ec2/describe_snapshots.rb
fog-0.0.75 lib/fog/aws/parsers/ec2/describe_snapshots.rb