Class: BoomNats::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/boom_nats/topic.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, reply_to, nats, serializer, parser) ⇒ Topic

Returns a new instance of Topic.



3
4
5
6
7
8
9
10
11
# File 'lib/boom_nats/topic.rb', line 3

def initialize(message, reply_to, nats, serializer, parser)
  @message = message
  @reply_to = reply_to
  @nats = nats
  @serializer = serializer
  @parser = parser

  start
end

Instance Method Details

#consumeObject

Raises:



13
14
15
# File 'lib/boom_nats/topic.rb', line 13

def consume
  raise Error, "consume method do not implement yet"
end