Module: Peerindex
- Extended by:
- Configuration
- Defined in:
- lib/peerindex.rb,
lib/peerindex/api.rb,
lib/peerindex/error.rb,
lib/peerindex/client.rb,
lib/peerindex/request.rb,
lib/peerindex/version.rb,
lib/peerindex/connection.rb,
lib/peerindex/client/user.rb,
lib/peerindex/configuration.rb
Defined Under Namespace
Modules: Configuration, Request Classes: BadGateway, BadRequest, Client, EnhanceYourCalm, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, ServiceUnavailable, Unauthorized
Constant Summary collapse
- VERSION =
The version of the gem
'0.0.1'.freeze
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_CONSUMER_SECRET, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FARADAY_OPTIONS, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_GATEWAY, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Twitter::Client.
-
.new(options = {}) ⇒ Peerindex::Client
Alias for Peerindex::Client.new.
- .respond_to?(method, include_private = false) ⇒ Boolean
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to Twitter::Client
17 18 19 20 |
# File 'lib/peerindex.rb', line 17 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(options = {}) ⇒ Peerindex::Client
Alias for Peerindex::Client.new
12 13 14 |
# File 'lib/peerindex.rb', line 12 def new(={}) Peerindex::Client.new() end |
.respond_to?(method, include_private = false) ⇒ Boolean
22 23 24 |
# File 'lib/peerindex.rb', line 22 def respond_to?(method, include_private = false) new.respond_to?(method, include_private) || super(method, include_private) end |