Module: Roe

Extended by:
Roe, Configuration
Included in:
Roe
Defined in:
lib/roe.rb,
lib/roe/client.rb,
lib/roe/version.rb,
lib/roe/configuration.rb

Defined Under Namespace

Modules: Configuration Classes: Client

Constant Summary collapse

VERSION =
"0.1.0"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_CONNECTION_OPTIONS, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Instance Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Instance Method Details

#resolve(url, options = {}) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/roe.rb', line 21

def resolve(url, options = {})
  @providers.each do |provider|
    return Client.new(provider[:service]).resolve(url, options) if match?(provider[:pattern], url)
  end

  nil
end