class

UCLA::Timetable

Inherits Reference < Object

Constants

CACHE_EXPIRATION = 10.minutes
Log = ::Log.for(self)
VERSION = "1.3.0"

Constructors

new(host : String, client_id : String, client_secret : String)
Source

Class methods

logger
Source
logger=(logger : ::Log)
Source

Instance methods

fetch_new_access_token
Source
get_access_token
Source
get_active_term(date : Time = Time.utc) : ActiveTerm

Use default param for date

Source
get_class_details(offered_term_code : String, subject_area_code : String, course_catalog_number : String, class_number : String) : ClassDetails
Source
get_class_section(offered_term_code : String, subject_area_code : String, course_catalog_number : String, class_number : String) : ClassSection
Source
get_class_section_details(offered_term_code : String, subject_area_code : String, course_catalog_number : String, class_section_number : String) : SectionDetail
Source
get_instructor_details(ucla_id : String | Int64) : Instructor | Nil
Source
get_term_details(term : String | Nil = nil) : TermDetails

Use presence to detect provided term, default empty

Source
headers
Source
list_classes(term : String | Nil = nil) : ClassResponse
Source
request(klass, url : String, method : String = "GET", cache : String | Nil = nil)
Source
term_param(term : String) : String
Source

Nested types