Module: ESPN
- Extended by:
- Configuration
- Defined in:
- lib/espn.rb,
lib/espn/error.rb,
lib/espn/client.rb,
lib/espn/request.rb,
lib/espn/version.rb,
lib/espn/client/now.rb,
lib/espn/connection.rb,
lib/espn/client/audio.rb,
lib/espn/client/notes.rb,
lib/espn/client/teams.rb,
lib/espn/client/video.rb,
lib/espn/client/medals.rb,
lib/espn/client/scores.rb,
lib/espn/client/sports.rb,
lib/espn/configuration.rb,
lib/espn/client/athletes.rb,
lib/espn/client/headlines.rb,
lib/espn/client/standings.rb
Defined Under Namespace
Modules: Configuration, Connection, Request Classes: Client, Error, NotFound, Unauthorized
Constant Summary collapse
- VERSION =
Public: The version of the ESPN gem.
'0.1.2'.freeze
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_TIMEOUT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Public: Delegate methods to ESPN::Client.new.
-
.new(options = {}) ⇒ Object
Public: An alias for ESPN::Client.new.
-
.respond_to?(method, include_private = false) ⇒ Boolean
Public: Delegate to ESPN::Client.new respond_to?.
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Public: Delegate methods to ESPN::Client.new. If a ESPN::Client does not respond_to? the :method, pass it up the chain.
Returns nothing.
21 22 23 24 |
# File 'lib/espn.rb', line 21 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(options = {}) ⇒ Object
Public: An alias for ESPN::Client.new.
Returns an ESPN::Client.
13 14 15 |
# File 'lib/espn.rb', line 13 def new(={}) ESPN::Client.new() end |
.respond_to?(method, include_private = false) ⇒ Boolean
Public: Delegate to ESPN::Client.new respond_to?
Returns nothing.
29 30 31 |
# File 'lib/espn.rb', line 29 def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end |