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:



1484
1485
1486
# File 'lib/rds/right_rds_interface.rb', line 1484

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

#tagend(name) ⇒ Object



1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
# File 'lib/rds/right_rds_interface.rb', line 1492

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

#tagstart(name, attributes) ⇒ Object



1487
1488
1489
1490
1491
# File 'lib/rds/right_rds_interface.rb', line 1487

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