Module: Gems

Extended by:
Configuration
Defined in:
lib/gems.rb,
lib/gems/client.rb,
lib/gems/request.rb,
lib/gems/version.rb,
lib/gems/configuration.rb

Defined Under Namespace

Modules: Configuration, Request Classes: Client, Version

Constant Summary collapse

VERSION =
Version.to_s

Constants included from Configuration

Configuration::DEFAULT_HOST, Configuration::DEFAULT_KEY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

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

Delegate to Gems::Client


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

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

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

Alias for Gems::Client.new

Returns:


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

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

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

Returns:

  • (Boolean)

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

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