Class: Fetch::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/fetch/configuration.rb

Constant Summary collapse

DEFAULTS =
{
  user_agent:     "Mozilla/5.0",
  timeout:        10,
  namespaces:     ["fetch_sources"],
  raise_on_error: -> { defined?(Rails.env) && %w{development test}.include?(Rails.env) },
  backend:        Backend::Typhoeus
}

Instance Method Summary collapse

Instance Method Details

#namespace=(value) ⇒ Object

Convenience method for defining a single namespace that contains fetch modules.



26
27
28
# File 'lib/fetch/configuration.rb', line 26

def namespace=(value)
  self.namespaces = [value]
end