Class: Barker::Guideline::Vdgzfquiz
- Inherits:
-
Base
- Object
- Base
- Barker::Guideline::Vdgzfquiz
show all
- Defined in:
- lib/barker/guideline/vdgzfquiz.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/vdgzfquiz.rb', line 10
def jokers
['fifty_fifty']
end
|
#path ⇒ Object
22
23
24
|
# File 'lib/barker/guideline/vdgzfquiz.rb', line 22
def path
File.expand_path "#{File.dirname(__FILE__)}/../../../lib/barker/guideline/vdgzfquiz/questions.yaml"
end
|
#quizzes ⇒ Object
6
7
8
|
# File 'lib/barker/guideline/vdgzfquiz.rb', line 6
def quizzes
[Quiz.new(questions.sample(5))]
end
|
#round_time ⇒ Object
18
19
20
|
# File 'lib/barker/guideline/vdgzfquiz.rb', line 18
def round_time
35
end
|