Sha256: f79ba1bb2da4506a404ed96a6d0173962378d253e5920b37912e706be3c709dc
Contents?: true
Size: 920 Bytes
Versions: 3
Compression:
Stored size: 920 Bytes
Contents
module Qualtrics class Submission < Entity attr_accessor :id, :survey_id, :distribution_id, :finished_survey, :time_stamp def initialize(options={}) @id = options[:id] @survey_id = options[:survey_id] @distribution_id = options[:distribution_id] @finished_survey = options[:finished_survey] @time_stamp = options[:time_stamp] end def raw_csv response = get('getLegacyResponseData', { 'SurveyID' => survey_id, 'ResponseID' => id, 'Format' => 'CSV', 'ExportTags' => 1 }) if response.status == 200 response.result else false end end def self.attribute_map { 'ResponseID' => :id, 'SurveyID' => :survey_id, 'TimeStamp' => :time_stamp, 'EmailDistributionID' => :distribution_id, 'FinishedSurvey' => :finished_survey } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qualtrics-0.6.1 | lib/qualtrics/submission.rb |
qualtrics-0.6.0 | lib/qualtrics/submission.rb |
qualtrics-0.5.9b | lib/qualtrics/submission.rb |