Class: Restify::Adapter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/restify/adapter/base.rb

Direct Known Subclasses

EM, PooledEM, Typhoeus

Instance Method Summary collapse

Instance Method Details

#call(request) ⇒ Object



6
7
8
9
10
# File 'lib/restify/adapter/base.rb', line 6

def call(request)
  Promise.create do |writer|
    call_native request, writer
  end
end

#call_native(_request, _writer) ⇒ Object



12
13
14
# File 'lib/restify/adapter/base.rb', line 12

def call_native(_request, _writer)
  throw NotImplementedError.new 'Subclass responsibility'
end