Class: Sqewer::Connection::Message
- Inherits:
-
Struct
- Object
- Struct
- Sqewer::Connection::Message
- Defined in:
- lib/sqewer/connection.rb
Overview
A wrapper for most important properties of the received message
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#body ⇒ Object
Returns the value of attribute body.
-
#receipt_handle ⇒ Object
Returns the value of attribute receipt_handle.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
17 18 19 |
# File 'lib/sqewer/connection.rb', line 17 def attributes @attributes end |
#body ⇒ Object
Returns the value of attribute body
17 18 19 |
# File 'lib/sqewer/connection.rb', line 17 def body @body end |
#receipt_handle ⇒ Object
Returns the value of attribute receipt_handle
17 18 19 |
# File 'lib/sqewer/connection.rb', line 17 def receipt_handle @receipt_handle end |
Instance Method Details
#has_body? ⇒ Boolean
22 23 24 |
# File 'lib/sqewer/connection.rb', line 22 def has_body? body && !body.empty? end |
#inspect ⇒ Object
18 19 20 |
# File 'lib/sqewer/connection.rb', line 18 def inspect body.inspect end |