class Tarantool::EMDB::OneReplica
Public Class Methods
new(response, feed)
click to toggle source
# File lib/tarantool/em_db.rb, line 60 def initialize(response, feed) @response = response @feed = feed end
Public Instance Methods
call(result)
click to toggle source
# File lib/tarantool/em_db.rb, line 65 def call(result) if Exception === (result = _parse_iproto(result)) @feed.call result else @feed.call @response.parse_response_for_cb(result) end end