Class: Mercury::Fake::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/mercury/fake/subscriber.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handler, handle_capacity) ⇒ Subscriber

Returns a new instance of Subscriber.



7
8
9
10
# File 'lib/mercury/fake/subscriber.rb', line 7

def initialize(handler, handle_capacity)
  @handler = handler
  @handle_capacity = handle_capacity
end

Instance Attribute Details

#handle_capacityObject

Returns the value of attribute handle_capacity.



5
6
7
# File 'lib/mercury/fake/subscriber.rb', line 5

def handle_capacity
  @handle_capacity
end

#handlerObject (readonly)

Returns the value of attribute handler.



4
5
6
# File 'lib/mercury/fake/subscriber.rb', line 4

def handler
  @handler
end