Class: SynapseClient::QuestionSet::Answer

Inherits:
Object
  • Object
show all
Defined in:
lib/synapse_client/question_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#answerObject (readonly)

Returns the value of attribute answer.



30
31
32
# File 'lib/synapse_client/question_set.rb', line 30

def answer
  @answer
end

#idObject (readonly)

Returns the value of attribute id.



30
31
32
# File 'lib/synapse_client/question_set.rb', line 30

def id
  @id
end