Class: GithubToCanvasQuiz::CanvasAPI::Client

Inherits:
Object
  • Object
show all
Includes:
Endpoints
Defined in:
lib/github_to_canvas_quiz/canvas_api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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

#hostObject (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