Module: TedApi

Extended by:
Configuration
Defined in:
lib/ted_api.rb,
lib/ted_api/error.rb,
lib/ted_api/client.rb,
lib/ted_api/request.rb,
lib/ted_api/version.rb,
lib/ted_api/connection.rb,
lib/ted_api/client/tags.rb,
lib/ted_api/client/talks.rb,
lib/ted_api/client/events.rb,
lib/ted_api/client/quotes.rb,
lib/ted_api/client/themes.rb,
lib/ted_api/configuration.rb,
lib/ted_api/client/speakers.rb,
lib/ted_api/client/countries.rb,
lib/ted_api/client/languages.rb,
lib/ted_api/client/rating_words.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, NotImplemented, ServiceUnavailable, Unauthorized, UnprocessableEntity

Constant Summary collapse

VERSION =
'0.1'

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_ENDPOINT, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_RESPONSE_FORMAT, Configuration::DEFAULT_USER_AGENT, Configuration::DEFAULT_WEB_ENDPOINT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

api_endpoint=, configure, extended, options, reset, web_endpoint=

Class Method Details

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

Alias for TedApi::Client.new

Returns:



12
13
14
# File 'lib/ted_api.rb', line 12

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

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

Returns:

  • (Boolean)


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

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