Class: SynapseClient::QuestionSet
- Inherits:
-
Object
- Object
- SynapseClient::QuestionSet
- Defined in:
- lib/synapse_client/question_set.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#questions ⇒ Object
Returns the value of attribute questions.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ QuestionSet
constructor
A new instance of QuestionSet.
- #successful? ⇒ Boolean
Constructor Details
#initialize(opts = {}) ⇒ QuestionSet
Returns a new instance of QuestionSet.
7 8 9 10 |
# File 'lib/synapse_client/question_set.rb', line 7 def initialize(opts={}) @id = opts.id @questions = opts.questions.map{|q| Question.new(q)} end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/synapse_client/question_set.rb', line 5 def id @id end |
#questions ⇒ Object
Returns the value of attribute questions.
5 6 7 |
# File 'lib/synapse_client/question_set.rb', line 5 def questions @questions end |
Instance Method Details
#successful? ⇒ Boolean
12 13 14 |
# File 'lib/synapse_client/question_set.rb', line 12 def successful? true end |