Sha256: ce13446bcf0dcb69960debf7feeb1c3c5a4ab1fd30fcc069f2cf4c947b353492
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
require 'json' require 'open-uri' require 'time' require 'csv' #PCR class handles token and api url, so both are easily changed class PCR def initialize(token, api_endpt = "http://api.penncoursereview.com/v1/") @@token = token @@api_endpt = api_endpt end def course(course_code) Course.new(course_code) end def section(id, hit_api = true) Section.new(id, hit_api) end def instructor(id) Instructor.new(id) end end # Load classes Dir[File.dirname(__FILE__) + "/classes/*.rb"].each { |file| require file }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pcr-ruby-0.2.1 | lib/pcr-ruby.rb |
pcr-ruby-0.2 | lib/pcr-ruby.rb |