Class: EventMachine::UCEngine::Client

Inherits:
UCEngine::Client show all
Includes:
EventMachineRequest, EventMachineResponse
Defined in:
lib/em-ucengine/client_em.rb

Defined Under Namespace

Classes: Session, Subscription

Class Method Summary collapse

Instance Method Summary collapse

Methods included from EventMachineRequest

#delete, #get, #http_request, #json_post, #post, #put

Methods included from EventMachineResponse

#answer, #answer_bool, #answer_connect, #answer_download

Methods inherited from UCEngine::Client

#connect, #create_user, #initialize, #url

Methods included from UCEngine::NetHttpRequest

#delete, #get, #json_post, #post

Methods included from UCEngine::NetHttpResponse

#answer, #answer_bool, #answer_connect

Constructor Details

This class inherits a constructor from UCEngine::Client

Class Method Details

.run(*args) ⇒ Object

Init EventMachine and init a new instance of U.C.Engine client See #initialize for arguments



149
150
151
# File 'lib/em-ucengine/client_em.rb', line 149

def self.run(*args)
  EM.run {  yield self.new(*args) }
end

Instance Method Details

#time(&block) ⇒ Object



143
144
145
# File 'lib/em-ucengine/client_em.rb', line 143

def time(&block)
  Session.new(self, nil, nil).time &block
end