Class: Helena::SurveyImporter

Inherits:
Object
  • Object
show all
Defined in:
lib/helena/survey_importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#surveyObject

Returns the value of attribute survey.



5
6
7
# File 'lib/helena/survey_importer.rb', line 5

def survey
  @survey
end