Class: Quby::Answers::Services::BuildAnswer
- Inherits:
-
Object
- Object
- Quby::Answers::Services::BuildAnswer
- Defined in:
- lib/quby/answers/services/build_answer.rb
Instance Attribute Summary collapse
-
#given_attributes ⇒ Object
readonly
Returns the value of attribute given_attributes.
-
#questionnaire ⇒ Object
readonly
Returns the value of attribute questionnaire.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(questionnaire, given_attributes) ⇒ BuildAnswer
constructor
A new instance of BuildAnswer.
Constructor Details
#initialize(questionnaire, given_attributes) ⇒ BuildAnswer
Returns a new instance of BuildAnswer.
10 11 12 13 |
# File 'lib/quby/answers/services/build_answer.rb', line 10 def initialize(questionnaire, given_attributes) @questionnaire = questionnaire @given_attributes = given_attributes.with_indifferent_access end |
Instance Attribute Details
#given_attributes ⇒ Object (readonly)
Returns the value of attribute given_attributes.
8 9 10 |
# File 'lib/quby/answers/services/build_answer.rb', line 8 def given_attributes @given_attributes end |
#questionnaire ⇒ Object (readonly)
Returns the value of attribute questionnaire.
7 8 9 |
# File 'lib/quby/answers/services/build_answer.rb', line 7 def questionnaire @questionnaire end |