Class: SynapseClient::QuestionSet::Answer
- Inherits:
-
Object
- Object
- SynapseClient::QuestionSet::Answer
- Defined in:
- lib/synapse_client/question_set.rb
Instance Attribute Summary collapse
-
#answer ⇒ Object
readonly
Returns the value of attribute answer.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Answer
constructor
A new instance of Answer.
Constructor Details
#initialize(opts = {}) ⇒ Answer
Returns a new instance of Answer.
32 33 34 35 |
# File 'lib/synapse_client/question_set.rb', line 32 def initialize(opts = {}) @id = opts.id @answer = opts.answer end |
Instance Attribute Details
#answer ⇒ Object (readonly)
Returns the value of attribute answer.
30 31 32 |
# File 'lib/synapse_client/question_set.rb', line 30 def answer @answer end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
30 31 32 |
# File 'lib/synapse_client/question_set.rb', line 30 def id @id end |