Class: MessageBus::HTTPClient::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/message_bus/http_client/channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = last_message_id
  @callbacks = callbacks
end

Instance Attribute Details

#callbacksObject

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_idObject

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
  @last_message_id
end