Class: Quby::Answers::Entities::Respondent
- Inherits:
-
Object
- Object
- Quby::Answers::Entities::Respondent
- Defined in:
- lib/quby/answers/entities/respondent.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Respondent
constructor
A new instance of Respondent.
Constructor Details
#initialize(attributes = {}) ⇒ Respondent
Returns a new instance of Respondent.
11 12 13 14 |
# File 'lib/quby/answers/entities/respondent.rb', line 11 def initialize(attributes = {}) attributes = attributes.with_indifferent_access @type = attributes[:respondent_type] end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/quby/answers/entities/respondent.rb', line 9 def type @type end |