Class: Fog::Parsers::AWS::ECS::ListTaskDefinitions

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/aws/parsers/ecs/list_task_definitions.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_task_definitions.rb', line 14

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

#resetObject



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

def reset
  super
  @result = 'ListTaskDefinitionsResult'
  @response[@result] = {'taskDefinitionArns' => []}
end