Class: Academical::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/academical/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(auth = {}, options = {}) ⇒ Client

Returns a new instance of Client.



12
13
14
# File 'lib/academical/client.rb', line 12

def initialize(auth = {}, options = {})
  @http_client = Academical::HttpClient::HttpClient.new(auth, options)
end

Instance Method Details

#schoolsObject

All schools that are using Academical



17
18
19
# File 'lib/academical/client.rb', line 17

def schools()
  Academical::Api::Schools.new(@http_client)
end

#sectionsObject

Represents the section of a course in a school



22
23
24
# File 'lib/academical/client.rb', line 22

def sections()
  Academical::Api::Sections.new(@http_client)
end

#teachersObject

A teacher in a school.



27
28
29
# File 'lib/academical/client.rb', line 27

def teachers()
  Academical::Api::Teachers.new(@http_client)
end