Class: Fog::Parsers::AWS::ECS::CreateCluster

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

Instance Method Summary collapse

Methods inherited from Base

#start_element

Instance Method Details

#end_element(name) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fog/aws/parsers/ecs/create_cluster.rb', line 15

def end_element(name)
  super
  case name
  when 'clusterName', 'clusterArn', 'status'
    @cluster[name] = value
  when 'registeredContainerInstancesCount', 'runningTasksCount', 'pendingTasksCount'
    @cluster[name] = value.to_i
  when 'cluster'
    @response[@result]['cluster'] = @cluster
  end
end

#resetObject



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

def reset
  super
  @result = 'CreateClusterResult'
  @response[@result] = {}
  @cluster = {}
end