Module: ESV

Extended by:
Config
Defined in:
lib/esv_api.rb,
lib/esv_api/client.rb,
lib/esv_api/config.rb,
lib/esv_api/version.rb

Defined Under Namespace

Modules: Config Classes: Client, Version

Constant Summary

Constants included from Config

Config::DEFAULT_API_KEY, Config::DEFAULT_ENDPOINT, Config::DEFAULT_USER_AGENT, Config::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Config

configure, extended, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to ESV::Client



15
16
17
18
# File 'lib/esv_api.rb', line 15

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ ESV::Client

Alias for ESV::Client.new

Returns:



10
11
12
# File 'lib/esv_api.rb', line 10

def new(options={})
  ESV::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/esv_api.rb', line 20

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end

.should_use_caching?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/esv_api/client.rb', line 13

def self.should_use_caching?
  ESV.options[:should_cache] && HAS_DALLI
end