Class: JPC::Invoker
Instance Method Summary collapse
-
#initialize(handler) ⇒ Invoker
constructor
A new instance of Invoker.
- #invoke(json) ⇒ Object
Methods included from Helpers
#make_error, #make_message, #make_response, #make_result
Constructor Details
#initialize(handler) ⇒ Invoker
5 6 7 |
# File 'lib/jpc/invoker.rb', line 5 def initialize(handler) @handler = handler end |
Instance Method Details
#invoke(json) ⇒ Object
9 10 11 12 |
# File 'lib/jpc/invoker.rb', line 9 def invoke(json) request = Oj.load(json) execute(request) end |