Sha256: 620e6fbfb19dc5d1ee171530c024339a1ae923580c9d52a5b0369d29c0b79098

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require 'ted_api/connection'
require 'ted_api/request'
require 'ted_api/error'

require 'ted_api/client/talks'
require 'ted_api/client/events'
require 'ted_api/client/languages'
require 'ted_api/client/quotes'
require 'ted_api/client/rating_words'
require 'ted_api/client/speakers'
require 'ted_api/client/themes'
require 'ted_api/client/countries'
require 'ted_api/client/tags'

module TedApi
  class Client
    attr_accessor(*Configuration::VALID_OPTIONS_KEYS)

    def initialize(options={})
      options = TedApi.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end
    
    include TedApi::Connection
    include TedApi::Request
    include TedApi::Client::Talks
    include TedApi::Client::Events
    include TedApi::Client::Languages
    include TedApi::Client::Quotes
    include TedApi::Client::RatingWords
    include TedApi::Client::Speakers
    include TedApi::Client::Themes
    include TedApi::Client::Countries
    include TedApi::Client::Tags
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ted_api-0.1 lib/ted_api/client.rb