Class: RServiceBus2::ErrorMessage
- Inherits:
-
Object
- Object
- RServiceBus2::ErrorMessage
- Defined in:
- lib/rservicebus2/errormessage.rb
Overview
Error Message
Instance Attribute Summary collapse
-
#error_msg ⇒ Object
readonly
Returns the value of attribute error_msg.
-
#occurredat ⇒ Object
readonly
Returns the value of attribute occurredat.
-
#source_queue ⇒ Object
readonly
Returns the value of attribute source_queue.
Instance Method Summary collapse
-
#initialize(source_queue, error_msg) ⇒ ErrorMessage
constructor
A new instance of ErrorMessage.
Constructor Details
#initialize(source_queue, error_msg) ⇒ ErrorMessage
Returns a new instance of ErrorMessage.
7 8 9 10 11 12 |
# File 'lib/rservicebus2/errormessage.rb', line 7 def initialize(source_queue, error_msg) @occurredat = DateTime.now @source_queue = source_queue @error_msg = error_msg end |
Instance Attribute Details
#error_msg ⇒ Object (readonly)
Returns the value of attribute error_msg.
5 6 7 |
# File 'lib/rservicebus2/errormessage.rb', line 5 def error_msg @error_msg end |
#occurredat ⇒ Object (readonly)
Returns the value of attribute occurredat.
5 6 7 |
# File 'lib/rservicebus2/errormessage.rb', line 5 def occurredat @occurredat end |
#source_queue ⇒ Object (readonly)
Returns the value of attribute source_queue.
5 6 7 |
# File 'lib/rservicebus2/errormessage.rb', line 5 def source_queue @source_queue end |