Parent

Methods

Included Modules

Files

Class/Module Index [+]

Quicksearch

Tarantool::EMDB::OneReplica

Public Class Methods

new(response, feed) click to toggle source
# File lib/tarantool/em_db.rb, line 54
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 59
def call(result)
  if Exception === (result = _parse_iproto(result))
    @feed.call result
  else
    @feed.call @response.parse_response(result)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.