Class: Fog::Parsers::AWS::ECS::ListClusters

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/aws/parsers/ecs/list_clusters.rb

Instance Method Summary collapse

Methods inherited from Base

#start_element

Instance Method Details

#end_element(name) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/fog/aws/parsers/ecs/list_clusters.rb', line 14

def end_element(name)
  super
  case name
  when 'member'
    @response[@result]['clusterArns'] << value
  when 'NextToken'
    @response[@result][name] = value
  end
end

#resetObject



8
9
10
11
12
# File 'lib/fog/aws/parsers/ecs/list_clusters.rb', line 8

def reset
  super
  @result = 'ListClustersResult'
  @response[@result] = {'clusterArns' => []}
end