Class: Fog::Parsers::AWS::ECS::ListTasks

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

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

#resetObject



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

def reset
  super
  @result = 'ListTasksResult'
  @response[@result] = {'taskArns' => []}
end