Class: RightAws::AsInterface::DescribeScalingActivitiesParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::AsInterface::DescribeScalingActivitiesParser
- Defined in:
- lib/as/right_as_interface.rb
Overview
PARSERS: Scaling Activity
Constant Summary
Constants inherited from RightAWSParser
RightAWSParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from RightAWSParser
#full_tag_name, #result, #tag, #xml_lib, #xmlpath
Instance Method Summary collapse
Methods inherited from RightAWSParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from RightAws::RightAWSParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser
Instance Method Details
#reset ⇒ Object
556 557 558 |
# File 'lib/as/right_as_interface.rb', line 556 def reset @result = { :scaling_activities => []} end |
#tagend(name) ⇒ Object
543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/as/right_as_interface.rb', line 543 def tagend(name) case name when 'ActivityId' then @item[:activity_id] = @text when 'StartTime' then @item[:start_time] = @text when 'EndTime' then @item[:end_time] = @text when 'Progress' then @item[:progress] = @text.to_i when 'StatusCode' then @item[:status_code] = @text when 'Cause' then @item[:cause] = @text when 'Description' then @item[:description] = @text when 'member', 'Activity' then @result[:scaling_activities] << @item when 'NextToken' then @result[:next_token] = @text end end |
#tagstart(name, attributes) ⇒ Object
:nodoc:
538 539 540 541 542 |
# File 'lib/as/right_as_interface.rb', line 538 def (name, attributes) case name when 'member', 'Activity' then @item = {} end end |