Class: QuestionproRails::ResponseAnswer
- Inherits:
-
Object
- Object
- QuestionproRails::ResponseAnswer
- Defined in:
- lib/questionpro_rails/response_answer.rb
Instance Attribute Summary collapse
-
#answer_text ⇒ Object
readonly
Returns the value of attribute answer_text.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ResponseAnswer
constructor
A new instance of ResponseAnswer.
Constructor Details
#initialize(attributes) ⇒ ResponseAnswer
Returns a new instance of ResponseAnswer.
6 7 8 9 10 |
# File 'lib/questionpro_rails/response_answer.rb', line 6 def initialize (attributes) @id = attributes['id'] @answer_text = attributes['answerText'] @value = attributes['value'] end |
Instance Attribute Details
#answer_text ⇒ Object (readonly)
Returns the value of attribute answer_text.
4 5 6 |
# File 'lib/questionpro_rails/response_answer.rb', line 4 def answer_text @answer_text end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/questionpro_rails/response_answer.rb', line 4 def id @id end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/questionpro_rails/response_answer.rb', line 4 def value @value end |