Class: RightAws::RdsInterface::DescribeEventsParser

Inherits:
RightAws::RightAWSParser show all
Defined in:
lib/rds/right_rds_interface.rb

Overview


DB Events

Constant Summary

Constants inherited from RightAws::RightAWSParser

RightAws::RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAws::RightAWSParser

#full_tag_name, #result, #tag, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAws::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

:nodoc:



980
981
982
# File 'lib/rds/right_rds_interface.rb', line 980

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

#tagend(name) ⇒ Object



988
989
990
991
992
993
994
995
996
997
998
# File 'lib/rds/right_rds_interface.rb', line 988

def tagend(name)
  case name
  when 'Marker'           then @result[:marker]       = @text
  when 'MaxRecords'       then @result[:max_records]  = @text.to_i  # ?
  when 'Date'             then @event[:date]          = @text
  when 'SourceIdentifier' then @event[:aws_id]        = @text
  when 'SourceType'       then @event[:source_type]   = @text
  when 'Message'          then @event[:message]       = @text
  when 'Event'            then @result[:events]      << @event
  end
end

#tagstart(name, attributes) ⇒ Object



983
984
985
986
987
# File 'lib/rds/right_rds_interface.rb', line 983

def tagstart(name, attributes)
  case name
    when 'Event' then @event = {}
  end
end