Class: QualtricsAPI::Survey
- Inherits:
-
Object
- Object
- QualtricsAPI::Survey
- Defined in:
- lib/qualtrics_api/survey.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner_id ⇒ Object
Returns the value of attribute owner_id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #export_responses(export_options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Survey
constructor
A new instance of Survey.
Constructor Details
#initialize(options = {}) ⇒ Survey
Returns a new instance of Survey.
6 7 8 9 10 11 |
# File 'lib/qualtrics_api/survey.rb', line 6 def initialize( = {}) attributes_mappings.each do |key, qualtrics_key| instance_variable_set "@#{key}", [qualtrics_key] end @conn = [:connection] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/qualtrics_api/survey.rb', line 4 def id @id end |
#last_modified ⇒ Object
Returns the value of attribute last_modified.
4 5 6 |
# File 'lib/qualtrics_api/survey.rb', line 4 def last_modified @last_modified end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/qualtrics_api/survey.rb', line 4 def name @name end |
#owner_id ⇒ Object
Returns the value of attribute owner_id.
4 5 6 |
# File 'lib/qualtrics_api/survey.rb', line 4 def owner_id @owner_id end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/qualtrics_api/survey.rb', line 4 def status @status end |
Instance Method Details
#export_responses(export_options = {}) ⇒ Object
13 14 15 |
# File 'lib/qualtrics_api/survey.rb', line 13 def export_responses( = {}) QualtricsAPI::Services::ResponseExportService.new(.merge(survey_id: id, connection: @conn)) end |