Class: Academical::Client
- Inherits:
-
Object
- Object
- Academical::Client
- Defined in:
- lib/academical/client.rb
Instance Method Summary collapse
-
#initialize(auth = {}, options = {}) ⇒ Client
constructor
A new instance of Client.
-
#schools ⇒ Object
All schools that are using Academical.
-
#sections ⇒ Object
Represents the section of a course in a school.
-
#teachers ⇒ Object
A teacher in a school.
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 = {}, = {}) @http_client = Academical::HttpClient::HttpClient.new(auth, ) end |
Instance Method Details
#schools ⇒ Object
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 |
#sections ⇒ Object
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 |
#teachers ⇒ Object
A teacher in a school.
27 28 29 |
# File 'lib/academical/client.rb', line 27 def teachers() Academical::Api::Teachers.new(@http_client) end |