Class: EventMachine::UCEngine::Client::Subscription
- Inherits:
-
EM::EventSource
- Object
- EM::EventSource
- EventMachine::UCEngine::Client::Subscription
- Defined in:
- lib/em-ucengine/client_em.rb
Overview
Represent a subscription to the U.C.Engine API Use #subscribe to create a new one
Instance Method Summary collapse
-
#cancel ⇒ Object
Cancel subscription.
-
#start(start) ⇒ Object
Start subscription.
Instance Method Details
#cancel ⇒ Object
Cancel subscription
163 164 165 166 |
# File 'lib/em-ucengine/client_em.rb', line 163 def cancel close yield if block_given? end |
#start(start) ⇒ Object
Start subscription
157 158 159 160 |
# File 'lib/em-ucengine/client_em.rb', line 157 def start(start) @query[:start] = start super() end |