Class: RocketChat::Realtime::Handlers::Result

Inherits:
Base
  • Object
show all
Defined in:
lib/rocket_chat/realtime/handlers/result.rb

Overview

Result Message Handler

The DDP RPC return value

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from Base

#dispatcher, #message

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from RocketChat::Realtime::Handlers::Base

Instance Method Details

#processObject

See Also:

Since:

  • 0.1.0



28
29
30
# File 'lib/rocket_chat/realtime/handlers/result.rb', line 28

def process
  AsyncTask.resolve(result.id, result)
end

#resultRocketChat::Realtime::Messages::Result

The message result

Returns:

Since:

  • 0.1.0



20
21
22
23
24
25
# File 'lib/rocket_chat/realtime/handlers/result.rb', line 20

def result
  Messages::Result.new(
    message['id'],
    message['result']
  )
end