Class: Fog::Parsers::AWS::AutoScaling::DescribeScheduledActions
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::AWS::AutoScaling::DescribeScheduledActions
- Defined in:
- lib/fog/aws/parsers/auto_scaling/describe_scheduled_actions.rb
Instance Method Summary collapse
Instance Method Details
#end_element(name) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_scheduled_actions.rb', line 16 def end_element(name) case name when 'member' @results['ScheduledUpdateGroupActions'] << @scheduled_update_group_action reset_scheduled_update_group_action when 'AutoScalingGroupName', 'ScheduledActionARN', 'ScheduledActionName', 'Recurrence' @scheduled_update_group_action[name] = value when 'DesiredCapacity', 'MaxSize', 'MinSize' @scheduled_update_group_action[name] = value.to_i when 'Time', 'StartTime', 'EndTime' @scheduled_update_group_action[name] = Time.parse(value) when 'NextToken' @results[name] = value when 'RequestId' @response['ResponseMetadata'][name] = value when 'DescribeScheduledActionsResponse' @response['DescribeScheduledActionsResult'] = @results end end |
#reset ⇒ Object
6 7 8 9 10 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_scheduled_actions.rb', line 6 def reset reset_scheduled_update_group_action @results = { 'ScheduledUpdateGroupActions' => [] } @response = { 'DescribeScheduledActionsResult' => {}, 'ResponseMetadata' => {} } end |
#reset_scheduled_update_group_action ⇒ Object
12 13 14 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_scheduled_actions.rb', line 12 def reset_scheduled_update_group_action @scheduled_update_group_action = {} end |