class KhanAcademy::Playlist

Attributes

all_assessment_item_keys[R]
assessment_item_tags[R]
assessment_items[R]
author_name[R]
author_names[R]
backup_timestamp[R]
content_ki[R]
content_kind[R]
covers[R]
creation_date[R]
current_revision_key[R]
date_added[R]
deleted[R]
deleted_mod_time[R]
description[R]
description_html[R]
display_name[R]
download_urls[R]
duration[R]
edit_slug[R]
extra_properties[R]
file_name[R]
global_id[R]
h_position[R]
has_questions[R]
id[R]
image_url[R]
image_url_256[R]
ka_url[R]
ka_user_license[R]
keywords[R]
kind[R]
live[R]
name[R]
node_slug[R]
position[R]
prerequisites[R]
pretty_display_name[R]
problem_types[R]
progress_key[R]
readable_id[R]
relative_url[R]
seconds_per_fast_problem[R]
sha[R]
sha1[R]
short_display_name[R]
summative[R]
tags[R]
title[R]
tracking_document_url[R]
translated_description[R]
translated_description_html[R]
translated_display_name[R]
translated_pretty_display_name[R]
translated_short_display_name[R]
translated_title[R]
translated_youtube_id[R]
translated_youtube_lang[R]
tutorial_only[R]
url[R]
uses_assessment_items[R]
v_position[R]
youtube_id[R]

Public Class Methods

get_exercises(topic) click to toggle source
# File lib/rubykhan.rb, line 61
def self.get_exercises(topic)
        uri = "http://www.KhanAcademy.org/api/v1/playlists/#{topic}/exercises"
        options = KhanAcademy::Playlist.get(uri)
        options.collect {|json| new(json)}
end
get_videos(topic) click to toggle source
# File lib/rubykhan.rb, line 67
def self.get_videos(topic)
        uri = "http://www.KhanAcademy.org/api/v1/playlists/#{topic}/videos"
        options = KhanAcademy::Playlist.get(uri)
        options.collect {|json| new(json)}
end
new(options) click to toggle source
# File lib/rubykhan.rb, line 53
def initialize(options)
        options.each do |key, value|
                unless key.to_s.empty?
                        eval("@#{key}=#{value.inspect}")
                end
        end
end