Class: RightAws::AsInterface::DescribeScalingActivitiesParser

Inherits:
RightAWSParser
  • Object
show all
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

#resetObject



555
556
557
# File 'lib/as/right_as_interface.rb', line 555

def reset
  @result = { :scaling_activities => []}
end

#tagend(name) ⇒ Object



542
543
544
545
546
547
548
549
550
551
552
553
554
# File 'lib/as/right_as_interface.rb', line 542

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:



537
538
539
540
541
# File 'lib/as/right_as_interface.rb', line 537

def tagstart(name, attributes)
  case name
  when 'member', 'Activity' then @item = {}
  end
end