Class: Helena::SurveyImporter
- Inherits:
-
Object
- Object
- Helena::SurveyImporter
- Defined in:
- lib/helena/survey_importer.rb
Instance Attribute Summary collapse
-
#survey ⇒ Object
Returns the value of attribute survey.
Instance Method Summary collapse
-
#initialize(yaml_string) ⇒ SurveyImporter
constructor
A new instance of SurveyImporter.
Constructor Details
#initialize(yaml_string) ⇒ SurveyImporter
Returns a new instance of SurveyImporter.
7 8 9 10 11 |
# File 'lib/helena/survey_importer.rb', line 7 def initialize(yaml_string) @parsed = YAML.load yaml_string # rubocop:disable Security/YAMLLoad create_survey end |
Instance Attribute Details
#survey ⇒ Object
Returns the value of attribute survey.
5 6 7 |
# File 'lib/helena/survey_importer.rb', line 5 def survey @survey end |