Module: TedApi::Client::Talks

Included in:
TedApi::Client
Defined in:
lib/ted_api/client/talks.rb

Instance Method Summary collapse

Instance Method Details

#speakers_by_talk(talk, options = {}, raw = false) ⇒ Object



20
21
22
# File 'lib/ted_api/client/talks.rb', line 20

def speakers_by_talk(talk, options={}, raw=false)
  get("talks/#{talk}/speakers", options, raw)
end

#subtitles(talk, options = {}, raw = false) ⇒ Object



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

def subtitles(talk, options={}, raw=false)
  get("talks/#{talk}/subtitles", options, raw)
end

#talks(talk = nil, options = {}, raw = false) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/ted_api/client/talks.rb', line 8

def talks(talk=nil, options={}, raw=false)
  if talk.nil?
    get('talks', options, raw)
  else
    get("talks/#{talk}", options, raw)
  end
end