Sha256: 00548108daeb1d7fb4e5edc6926053a7385e8b0288b27080fa79f6b9ed703ab9

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

module TedApi
  class Client
    module Talks
      
      ##
      # http://developer.ted.com/API_Docs#talks
      
      def talks(talk=nil, options={}, raw=false)
        if talk.nil?
          get('talks', options, raw)
        else
          get("talks/#{talk}", options, raw)
        end
      end
      
      def subtitles(talk, options={}, raw=false)
        get("talks/#{talk}/subtitles", options, raw)
      end
      
      def speakers_by_talk(talk, options={}, raw=false)
        get("talks/#{talk}/speakers", options, raw)
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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