Class: RightAws::RdsInterface::DescribeEventsParser

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

Overview


DB Events

Constant Summary

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:



1275
1276
1277
# File 'lib/rds/right_rds_interface.rb', line 1275

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

#tagend(name) ⇒ Object



1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
# File 'lib/rds/right_rds_interface.rb', line 1283

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



1278
1279
1280
1281
1282
# File 'lib/rds/right_rds_interface.rb', line 1278

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