Class: Shoryuken::InlineMessage
- Inherits:
-
Struct
- Object
- Struct
- Shoryuken::InlineMessage
- Defined in:
- lib/shoryuken/inline_message.rb
Overview
A high-performance alternative to OpenStruct for representing SQS messages.
InlineMessage is a Struct-based implementation that provides the same interface as the previous OpenStruct-based message representation but with significantly better performance characteristics. It contains all the essential attributes needed to represent an Amazon SQS message within the Shoryuken framework.
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#body ⇒ Object
Returns the value of attribute body.
-
#delete ⇒ Object
Returns the value of attribute delete.
-
#md5_of_body ⇒ Object
Returns the value of attribute md5_of_body.
-
#md5_of_message_attributes ⇒ Object
Returns the value of attribute md5_of_message_attributes.
-
#message_attributes ⇒ Object
Returns the value of attribute message_attributes.
-
#message_id ⇒ Object
Returns the value of attribute message_id.
-
#queue_name ⇒ Object
Returns the value of attribute queue_name.
-
#receipt_handle ⇒ Object
Returns the value of attribute receipt_handle.
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def attributes @attributes end |
#body ⇒ Object
Returns the value of attribute body
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def body @body end |
#delete ⇒ Object
Returns the value of attribute delete
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def delete @delete end |
#md5_of_body ⇒ Object
Returns the value of attribute md5_of_body
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def md5_of_body @md5_of_body end |
#md5_of_message_attributes ⇒ Object
Returns the value of attribute md5_of_message_attributes
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def end |
#message_attributes ⇒ Object
Returns the value of attribute message_attributes
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def end |
#message_id ⇒ Object
Returns the value of attribute message_id
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def end |
#queue_name ⇒ Object
Returns the value of attribute queue_name
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def queue_name @queue_name end |
#receipt_handle ⇒ Object
Returns the value of attribute receipt_handle
10 11 12 |
# File 'lib/shoryuken/inline_message.rb', line 10 def receipt_handle @receipt_handle end |