Module: GamesRadarApi

Extended by:
Configuration
Defined in:
lib/games_radar_api.rb,
lib/games_radar_api/api.rb,
lib/games_radar_api/error.rb,
lib/games_radar_api/client.rb,
lib/games_radar_api/request.rb,
lib/games_radar_api/version.rb,
lib/games_radar_api/connection.rb,
lib/games_radar_api/client/news.rb,
lib/games_radar_api/client/games.rb,
lib/games_radar_api/client/cheats.rb,
lib/games_radar_api/client/genres.rb,
lib/games_radar_api/client/guides.rb,
lib/games_radar_api/client/videos.rb,
lib/games_radar_api/configuration.rb,
lib/games_radar_api/client/platforms.rb,
lib/games_radar_api/client/developers.rb,
lib/games_radar_api/client/franchises.rb,
lib/games_radar_api/client/publishers.rb,
lib/games_radar_api/client/screenshots.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: API, BadRequest, Client, Error, InternalServerError, InvalidSignature, NotFound, ServiceUnavailable

Constant Summary collapse

VERSION =
"1.0.4"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_METHOD, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_CONFIG_KEYS, Configuration::VALID_CONNECTION_KEYS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ GamesRadarApi::Client

Alias for GamesRadarApi::Client.new



11
12
13
# File 'lib/games_radar_api.rb', line 11

def self.client(options={})
  GamesRadarApi::Client.new(options)
end

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

Delegate to GamesRadarApi::Client



16
17
18
19
# File 'lib/games_radar_api.rb', line 16

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

.respond_to?(method) ⇒ Boolean

Delegate to GamesRadarApi::Client

Returns:

  • (Boolean)


22
23
24
# File 'lib/games_radar_api.rb', line 22

def self.respond_to?(method)
  return client.respond_to?(method) || super
end