Class: Fog::Parsers::AWS::ECS::DeleteCluster
- Defined in:
- lib/fog/aws/parsers/ecs/delete_cluster.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#end_element(name) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fog/aws/parsers/ecs/delete_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 |
#reset ⇒ Object
8 9 10 11 12 13 |
# File 'lib/fog/aws/parsers/ecs/delete_cluster.rb', line 8 def reset super @result = 'DeleteClusterResult' @response[@result] = {} @cluster = {} end |