Module: ESPN
- Extended by:
- Configuration
- Defined in:
- lib/espn.rb,
lib/espn/error.rb,
lib/espn/client.rb,
lib/espn/mapper.rb,
lib/espn/helpers.rb,
lib/espn/request.rb,
lib/espn/version.rb,
lib/espn/arguments.rb,
lib/espn/client/now.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
Overview
Public: The ESPN Module that all other modules and classes will be a part of. This module extends the Configuration module so you can modify defaults at this level.
Defined Under Namespace
Modules: Configuration, Helpers, Mapper, Request Classes: Arguments, BadRequest, Client, Error, Forbidden, GatewayTimeout, InternalServerError, NotFound, Unauthorized
Constant Summary collapse
- VERSION =
Public: The version of the ESPN gem.
'0.2.0'.freeze
Constants included from Configuration
Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_TIMEOUT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Instance Attribute Summary
Attributes included from Configuration
#adapter, #api_key, #api_version, #open_timeout, #proxy, #timeout, #user_agent
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.
26 27 28 29 |
# File 'lib/espn.rb', line 26 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.
18 19 20 |
# File 'lib/espn.rb', line 18 def new(={}) ESPN::Client.new() end |
.respond_to?(method, include_private = false) ⇒ Boolean
Public: Delegate to ESPN::Client.new respond_to?
Returns nothing.
34 35 36 |
# File 'lib/espn.rb', line 34 def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end |