Module: Hull
- Extended by:
- Config
- Defined in:
- lib/hull.rb,
lib/hull/client.rb,
lib/hull/config.rb,
lib/hull/paywall.rb,
lib/hull/request.rb,
lib/hull/version.rb,
lib/hull/connection.rb,
lib/hull/request/auth.rb
Defined Under Namespace
Modules: Config, Connection, Request Classes: Client, Paywall
Constant Summary collapse
- VERSION =
"0.1.0"
Constants included from Config
Config::DEFAULT_ADAPTER, Config::DEFAULT_APP_ID, Config::DEFAULT_APP_SECRET, Config::DEFAULT_CACHE_STORE, Config::DEFAULT_CONNECTION_OPTIONS, Config::DEFAULT_ENDPOINT, Config::DEFAULT_LOGGER, Config::DEFAULT_PROXY, Config::DEFAULT_USER_AGENT, Config::VALID_OPTIONS_KEYS
Class Method Summary collapse
- .log(msg, level = :debug) ⇒ Object
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to hull::Client.
-
.new(options = {}) ⇒ Hull::Client
Alias for Hull::Client.new.
- .respond_to?(method, include_private = false) ⇒ Boolean
Methods included from Config
configure, domain, extended, options, reset
Class Method Details
.log(msg, level = :debug) ⇒ Object
25 26 27 |
# File 'lib/hull.rb', line 25 def log msg, level=:debug Hull.logger.send(level.to_sym, "[hull:#{Hull.domain}] #{msg}") if Hull.logger && Hull.logger.respond_to?(level.to_sym) end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to hull::Client
16 17 18 19 |
# File 'lib/hull.rb', line 16 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(options = {}) ⇒ Hull::Client
Alias for Hull::Client.new
11 12 13 |
# File 'lib/hull.rb', line 11 def new(={}) Hull::Client.new() end |
.respond_to?(method, include_private = false) ⇒ Boolean
21 22 23 |
# File 'lib/hull.rb', line 21 def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end |