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:



1206
1207
1208
# File 'lib/rds/right_rds_interface.rb', line 1206

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

#tagend(name) ⇒ Object



1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
# File 'lib/rds/right_rds_interface.rb', line 1214

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



1209
1210
1211
1212
1213
# File 'lib/rds/right_rds_interface.rb', line 1209

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