Class: Quby::Answers::Entities::Respondent

Inherits:
Object
  • Object
show all
Defined in:
lib/quby/answers/entities/respondent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/quby/answers/entities/respondent.rb', line 9

def type
  @type
end