module Quby

rubocop:disable LineLength

Constants

VERSION

Public Class Methods

answer_repo=(repo) click to toggle source
# File lib/quby.rb, line 31
def answer_repo=(repo)
  @answer_repo = repo
  @answers_api = nil
end
answers() click to toggle source
Quby public API
# File lib/quby.rb, line 49
def answers
  @answers_api ||= Quby::Answers::API.new answer_repo: Quby.send(:answer_repo)
end
fixtures_path() click to toggle source
# File lib/quby.rb, line 41
def fixtures_path
  File.expand_path File.join('..', '..', 'spec', 'fixtures'), __FILE__
end
questionnaire_repo=(repo) click to toggle source
# File lib/quby.rb, line 36
def questionnaire_repo=(repo)
  @questionnaire_repo = repo
  @questionnaires_api = nil
end
questionnaires() click to toggle source
# File lib/quby.rb, line 53
def questionnaires
  @questionnaires_api ||= Quby::Questionnaires::API.new questionnaire_repo: Quby.send(:questionnaire_repo)
end
show_exceptions() click to toggle source
Quby configuration
# File lib/quby.rb, line 23
def show_exceptions
  @show_exceptions
end
show_exceptions=(bool) click to toggle source
# File lib/quby.rb, line 27
def show_exceptions=(bool)
  @show_exceptions = bool
end

Private Class Methods

answer_repo() click to toggle source
No more Quby public API, move along
# File lib/quby.rb, line 63
def answer_repo
  @answer_repo || fail("Quby does not have its answer repo (Quby.answer_repo) configured.")
end
questionnaire_repo() click to toggle source
# File lib/quby.rb, line 67
def questionnaire_repo
  @questionnaire_repo || fail("Quby does not have its questionnaire repo (Quby.questionnaire_repo) configured.")
end