Class: QuestionproRails::ResponseAnswer

Inherits:
Object
  • Object
show all
Defined in:
lib/questionpro_rails/response_answer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_textObject (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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/questionpro_rails/response_answer.rb', line 4

def id
  @id
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/questionpro_rails/response_answer.rb', line 4

def value
  @value
end