Class: RedPack::RequestContext
- Inherits:
-
Object
- Object
- RedPack::RequestContext
- Defined in:
- lib/redpack-ruby/request-context.rb
Instance Attribute Summary collapse
-
#msg_id ⇒ Object
Returns the value of attribute msg_id.
-
#request_or_notify ⇒ Object
Returns the value of attribute request_or_notify.
-
#response_queue_name ⇒ Object
Returns the value of attribute response_queue_name.
Instance Method Summary collapse
-
#initialize(response_queue_name, msg_id, request_or_notify) ⇒ RequestContext
constructor
A new instance of RequestContext.
- #NOTIFY? ⇒ Boolean
- #REQUEST? ⇒ Boolean
Constructor Details
#initialize(response_queue_name, msg_id, request_or_notify) ⇒ RequestContext
Returns a new instance of RequestContext.
10 11 12 13 14 |
# File 'lib/redpack-ruby/request-context.rb', line 10 def initialize(response_queue_name, msg_id, request_or_notify) @response_queue_name = response_queue_name @msg_id = msg_id @request_or_notify = request_or_notify end |
Instance Attribute Details
#msg_id ⇒ Object
Returns the value of attribute msg_id.
5 6 7 |
# File 'lib/redpack-ruby/request-context.rb', line 5 def msg_id @msg_id end |
#request_or_notify ⇒ Object
Returns the value of attribute request_or_notify.
7 8 9 |
# File 'lib/redpack-ruby/request-context.rb', line 7 def request_or_notify @request_or_notify end |
#response_queue_name ⇒ Object
Returns the value of attribute response_queue_name.
6 7 8 |
# File 'lib/redpack-ruby/request-context.rb', line 6 def response_queue_name @response_queue_name end |
Instance Method Details
#NOTIFY? ⇒ Boolean
20 21 22 |
# File 'lib/redpack-ruby/request-context.rb', line 20 def NOTIFY? return self.request_or_notify == RedPack::Consts::NOTIFY end |
#REQUEST? ⇒ Boolean
16 17 18 |
# File 'lib/redpack-ruby/request-context.rb', line 16 def REQUEST? return self.request_or_notify == RedPack::Consts::REQUEST end |