Methods

HTTPI::Adapter

HTTPI::Adapter

Manages the adapter classes. Currently supports:

Constants

ADAPTERS
LOAD_ORDER

Public Class Methods

load(adapter) click to toggle source
# File lib/httpi/adapter.rb, line 38
def load(adapter)
  adapter = adapter ? validate_adapter!(adapter) : use
  [adapter, ADAPTERS[adapter][:class]]
end
use() click to toggle source
# File lib/httpi/adapter.rb, line 34
def use
  @adapter ||= default_adapter
end
use=(adapter) click to toggle source
# File lib/httpi/adapter.rb, line 26
def use=(adapter)
  return @adapter = nil if adapter.nil?

  validate_adapter! adapter
  load_adapter adapter
  @adapter = adapter
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.