Sha256: fbe46d6d9b6b7ad6f8c0472542fb5850845dc2a4bc338bbb31422b6b9cacab3f

Contents?: true

Size: 855 Bytes

Versions: 2

Compression:

Stored size: 855 Bytes

Contents

module Fog
  module Parsers
    module Redshift
      module AWS

        require 'fog/aws/parsers/redshift/cluster_snapshot_parser'

        class DescribeClusterSnapshots < ClusterSnapshotParser
          # :marker - (String)
          # :snapshots - (Array)

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

          def start_element(name, attrs = [])
            super
            case name
            when 'Snapshots'
              @snapshot = fresh_snapshot
            end
          end

          def end_element(name)
            super
            case name
            when 'Marker'
              @response[name] = value
            when 'Snapshot'
              @response['Snapshots'] << @snapshot
              @snapshot = fresh_snapshot
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb
fog-1.21.0 lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb