Module: Restify::Global
Instance Method Summary collapse
Instance Method Details
#adapter ⇒ Object
11 12 13 14 15 16 |
# File 'lib/restify/global.rb', line 11 def adapter @adapter ||= begin require 'restify/adapter/em' Restify::Adapter::EM.new end end |
#adapter=(adapter) ⇒ Object
18 19 20 |
# File 'lib/restify/global.rb', line 18 def adapter=(adapter) @adapter = adapter end |
#new(uri, **opts) ⇒ Object
5 6 7 8 9 |
# File 'lib/restify/global.rb', line 5 def new(uri, **opts) context = resolve_context uri, **opts Relation.new context, context.uri end |