Class: Happn::Subscription
- Inherits:
-
Object
- Object
- Happn::Subscription
- Defined in:
- lib/happn/subscription.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
-
#projector ⇒ Object
readonly
Returns the value of attribute projector.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query, projector, &handler) ⇒ Subscription
constructor
A new instance of Subscription.
Constructor Details
#initialize(query, projector, &handler) ⇒ Subscription
Returns a new instance of Subscription.
6 7 8 9 10 |
# File 'lib/happn/subscription.rb', line 6 def initialize(query, projector, &handler) @query = query @projector = projector @handler = handler end |
Instance Attribute Details
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
4 5 6 |
# File 'lib/happn/subscription.rb', line 4 def handler @handler end |
#projector ⇒ Object (readonly)
Returns the value of attribute projector.
4 5 6 |
# File 'lib/happn/subscription.rb', line 4 def projector @projector end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
4 5 6 |
# File 'lib/happn/subscription.rb', line 4 def query @query end |