Class: Yacs::Client
Instance Method Summary collapse
Instance Method Details
#courses(query) ⇒ Object
9 10 11 |
# File 'lib/yacs/client.rb', line 9 def courses query JSON.parse(self.class.get '/courses', { query: query })['courses'] end |
#sections(query) ⇒ Object
13 14 15 |
# File 'lib/yacs/client.rb', line 13 def sections query JSON.parse(self.class.get '/sections', { query: query })['sections'] end |