Class: Fog::Parsers::AWS::AutoScaling::DescribeScalingActivities
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::AWS::AutoScaling::DescribeScalingActivities
- Defined in:
- lib/fog/aws/parsers/auto_scaling/describe_scaling_activities.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 39 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_scaling_activities.rb', line 16 def end_element(name) case name when 'member' @results['Activities'] << @activity reset_activity when 'ActivityId', 'AutoScalingGroupName', 'Cause', 'Description', 'StatusCode', 'StatusMessage' @activity[name] = value when 'EndTime', 'StartTime' @activity[name] = Time.parse(value) when 'Progress' @activity[name] = value.to_i when 'NextToken' @results[name] = value when 'RequestId' @response['ResponseMetadata'][name] = value when 'DescribeScalingActivitiesResponse' @response['DescribeScalingActivitiesResult'] = @results end end |
#reset ⇒ Object
6 7 8 9 10 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_scaling_activities.rb', line 6 def reset reset_activity @results = { 'Activities' => [] } @response = { 'DescribeScalingActivitiesResult' => {}, 'ResponseMetadata' => {} } end |
#reset_activity ⇒ Object
12 13 14 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_scaling_activities.rb', line 12 def reset_activity @activity = {} end |