Class: Barker::Guideline::Llbaraquiz
- Inherits:
-
Base
- Object
- Base
- Barker::Guideline::Llbaraquiz
show all
- Defined in:
- lib/barker/guideline/llbaraquiz.rb
Constant Summary
Constants included
from Errors
Errors::AlreadyAnsweredError, Errors::AlreadyStartedError, Errors::AnswerNotFoundError, Errors::BarkerError, Errors::FileNotExistError, Errors::HasToRespondToIdError, Errors::HasToRespondToLocaleError, Errors::JokerAlreadyUsedError, Errors::NoCurrentStageError, Errors::NotStartedError, Errors::RecordNotFound, Errors::UnknownJokerError
Instance Method Summary
collapse
Methods inherited from Base
#answer, #candidates, #initialize
Instance Method Details
#jokers ⇒ Object
10
11
12
|
# File 'lib/barker/guideline/llbaraquiz.rb', line 10
def jokers
['fifty_fifty']
end
|
#path ⇒ Object
22
23
24
|
# File 'lib/barker/guideline/llbaraquiz.rb', line 22
def path
File.expand_path "#{File.dirname(__FILE__)}/../../../lib/barker/guideline/llbaraquiz/questions.yaml"
end
|
#quizzes ⇒ Object
6
7
8
|
# File 'lib/barker/guideline/llbaraquiz.rb', line 6
def quizzes
[Quiz.new(questions.sample(5))]
end
|
#round_time ⇒ Object
18
19
20
|
# File 'lib/barker/guideline/llbaraquiz.rb', line 18
def round_time
35
end
|