Class: MessageBus::HTTPClient::Channel
- Inherits:
-
Object
- Object
- MessageBus::HTTPClient::Channel
- Defined in:
- lib/message_bus/http_client/channel.rb
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
-
#last_message_id ⇒ Object
Returns the value of attribute last_message_id.
Instance Method Summary collapse
-
#initialize(last_message_id: -1,, callbacks: []) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(last_message_id: -1,, callbacks: []) ⇒ Channel
Returns a new instance of Channel.
8 9 10 11 |
# File 'lib/message_bus/http_client/channel.rb', line 8 def initialize(last_message_id: -1, callbacks: []) @last_message_id = @callbacks = callbacks end |
Instance Attribute Details
#callbacks ⇒ Object
Returns the value of attribute callbacks.
6 7 8 |
# File 'lib/message_bus/http_client/channel.rb', line 6 def callbacks @callbacks end |
#last_message_id ⇒ Object
Returns the value of attribute last_message_id.
6 7 8 |
# File 'lib/message_bus/http_client/channel.rb', line 6 def @last_message_id end |