Class: Yacs::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/yacs/client.rb

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