Class: Aws::SqsInterface::SqsReceiveMessageParser
- Defined in:
- lib/sqs/right_sqs_interface.rb
Overview
PARSERS: Messages
Constant Summary
Constants inherited from AwsParser
AwsParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from AwsParser
Instance Method Summary collapse
Methods inherited from AwsParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from Aws::AwsParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Aws::AwsParser
Instance Method Details
#reset ⇒ Object
:nodoc:
415 416 417 |
# File 'lib/sqs/right_sqs_interface.rb', line 415 def reset @result = [] end |
#tagend(name) ⇒ Object
421 422 423 424 425 426 427 428 |
# File 'lib/sqs/right_sqs_interface.rb', line 421 def tagend(name) case name when 'MessageId' ; @current_message['MessageId'] = @text when 'ReceiptHandle' ; @current_message['ReceiptHandle'] = @text when 'MD5OfBody' ; @current_message['MD5OfBody'] = @text when 'Body'; @current_message['Body'] = @text; @result << @current_message end end |
#tagstart(name, attributes) ⇒ Object
418 419 420 |
# File 'lib/sqs/right_sqs_interface.rb', line 418 def (name, attributes) @current_message = {} if name == 'Message' end |