Class: Fog::Parsers::Redshift::AWS::DescribeClusterSnapshots
- Inherits:
-
ClusterSnapshotParser
- Object
- Base
- ClusterSnapshotParser
- Fog::Parsers::Redshift::AWS::DescribeClusterSnapshots
- Defined in:
- lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb
Instance Method Summary collapse
- #end_element(name) ⇒ Object
-
#reset ⇒ Object
:marker - (String) :snapshots - (Array).
- #start_element(name, attrs = []) ⇒ Object
Methods inherited from ClusterSnapshotParser
Instance Method Details
#end_element(name) ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb', line 23 def end_element(name) super case name when 'Marker' @response[name] = value when 'Snapshot' @response['Snapshots'] << @snapshot @snapshot = fresh_snapshot end end |
#reset ⇒ Object
:marker - (String) :snapshots - (Array)
11 12 13 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb', line 11 def reset @response = { 'Snapshots' => [] } end |
#start_element(name, attrs = []) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb', line 15 def start_element(name, attrs = []) super case name when 'Snapshots' @snapshot = fresh_snapshot end end |