Class: GithubToCanvasQuiz::CanvasAPI::Client
- Inherits:
-
Object
- Object
- GithubToCanvasQuiz::CanvasAPI::Client
- Includes:
- Endpoints
- Defined in:
- lib/github_to_canvas_quiz/canvas_api/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host:, api_key:) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoints::QuizQuestions
#create_question, #delete_question, #get_single_question, #list_questions, #update_question
Methods included from Endpoints::Quizzes
#create_quiz, #get_single_quiz, #list_quizzes, #update_quiz
Constructor Details
#initialize(host:, api_key:) ⇒ Client
Returns a new instance of Client.
10 11 12 13 |
# File 'lib/github_to_canvas_quiz/canvas_api/client.rb', line 10 def initialize(host:, api_key:) @host = host @api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/github_to_canvas_quiz/canvas_api/client.rb', line 8 def api_key @api_key end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
8 9 10 |
# File 'lib/github_to_canvas_quiz/canvas_api/client.rb', line 8 def host @host end |