Class: QuestionSet
- Inherits:
-
Object
- Object
- QuestionSet
- Defined in:
- lib/question_set.rb
Instance Attribute Summary collapse
-
#questions ⇒ Object
Returns the value of attribute questions.
-
#questions_pool ⇒ Object
Returns the value of attribute questions_pool.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize ⇒ QuestionSet
constructor
A new instance of QuestionSet.
Constructor Details
#initialize ⇒ QuestionSet
Returns a new instance of QuestionSet.
3 4 5 6 7 |
# File 'lib/question_set.rb', line 3 def initialize @questions_pool = load_pool @questions =Array.new self.fetch end |
Instance Attribute Details
#questions ⇒ Object
Returns the value of attribute questions.
2 3 4 |
# File 'lib/question_set.rb', line 2 def questions @questions end |
#questions_pool ⇒ Object
Returns the value of attribute questions_pool.
2 3 4 |
# File 'lib/question_set.rb', line 2 def questions_pool @questions_pool end |