Class: EventQ::MessageArgs
- Inherits:
-
Object
- Object
- EventQ::MessageArgs
- Defined in:
- lib/eventq_base/message_args.rb
Instance Attribute Summary collapse
-
#abort ⇒ Object
Returns the value of attribute abort.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#drop ⇒ Object
Returns the value of attribute drop.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#retry_attempts ⇒ Object
readonly
Returns the value of attribute retry_attempts.
-
#sent ⇒ Object
readonly
Returns the value of attribute sent.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, retry_attempts:, context: {}, content_type:, id: nil, sent: nil) ⇒ MessageArgs
constructor
A new instance of MessageArgs.
Constructor Details
#initialize(type:, retry_attempts:, context: {}, content_type:, id: nil, sent: nil) ⇒ MessageArgs
Returns a new instance of MessageArgs.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/eventq_base/message_args.rb', line 12 def initialize(type:, retry_attempts:, context: {}, content_type:, id: nil, sent: nil) @type = type @retry_attempts = retry_attempts @abort = false @drop = false @context = context @content_type = content_type @id = id @sent = sent end |
Instance Attribute Details
#abort ⇒ Object
Returns the value of attribute abort.
6 7 8 |
# File 'lib/eventq_base/message_args.rb', line 6 def abort @abort end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
4 5 6 |
# File 'lib/eventq_base/message_args.rb', line 4 def content_type @content_type end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/eventq_base/message_args.rb', line 8 def context @context end |
#drop ⇒ Object
Returns the value of attribute drop.
7 8 9 |
# File 'lib/eventq_base/message_args.rb', line 7 def drop @drop end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/eventq_base/message_args.rb', line 9 def id @id end |
#retry_attempts ⇒ Object (readonly)
Returns the value of attribute retry_attempts.
5 6 7 |
# File 'lib/eventq_base/message_args.rb', line 5 def retry_attempts @retry_attempts end |
#sent ⇒ Object (readonly)
Returns the value of attribute sent.
10 11 12 |
# File 'lib/eventq_base/message_args.rb', line 10 def sent @sent end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/eventq_base/message_args.rb', line 3 def type @type end |