Class: Mercury::Fake::Subscriber
- Inherits:
-
Object
- Object
- Mercury::Fake::Subscriber
- Defined in:
- lib/mercury/fake/subscriber.rb
Instance Attribute Summary collapse
-
#handle_capacity ⇒ Object
Returns the value of attribute handle_capacity.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
Instance Method Summary collapse
-
#initialize(handler, handle_capacity) ⇒ Subscriber
constructor
A new instance of Subscriber.
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_capacity ⇒ Object
Returns the value of attribute handle_capacity.
5 6 7 |
# File 'lib/mercury/fake/subscriber.rb', line 5 def handle_capacity @handle_capacity end |
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
4 5 6 |
# File 'lib/mercury/fake/subscriber.rb', line 4 def handler @handler end |