Class: EventMachine::UCEngine::Client::Subscription

Inherits:
EM::EventSource
  • Object
show all
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

Instance Method Details

#cancelObject

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