Class: Happn::Subscription

Inherits:
Object
  • Object
show all
Defined in:
lib/happn/subscription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#handlerObject (readonly)

Returns the value of attribute handler.



4
5
6
# File 'lib/happn/subscription.rb', line 4

def handler
  @handler
end

#projectorObject (readonly)

Returns the value of attribute projector.



4
5
6
# File 'lib/happn/subscription.rb', line 4

def projector
  @projector
end

#queryObject (readonly)

Returns the value of attribute query.



4
5
6
# File 'lib/happn/subscription.rb', line 4

def query
  @query
end