Class: Fog::Parsers::Redshift::AWS::DescribeClusterSnapshots

Inherits:
ClusterSnapshotParser show all
Defined in:
lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from ClusterSnapshotParser

#fresh_snapshot

Methods inherited from Base

#attr_value, #characters, #end_element_namespace, #initialize, #start_element_namespace, #value

Constructor Details

This class inherits a constructor from Fog::Parsers::Base

Instance Method Details

#end_element(name) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb', line 24

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

#resetObject

:marker - (String) :snapshots - (Array)



12
13
14
# File 'lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb', line 12

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

#start_element(name, attrs = []) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb', line 16

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