Class: QualtricsAPI::Services::ResponseExportService

Inherits:
Object
  • Object
show all
Defined in:
lib/qualtrics_api/services/response_export_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



22
23
24
# File 'lib/qualtrics_api/services/response_export_service.rb', line 22

def result
  @result
end

Instance Method Details

#export_configurationsObject



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/qualtrics_api/services/response_export_service.rb', line 30

def export_configurations
  {
    response_set_id: response_set_id,
    file_type: file_type,
    last_response_id: last_response_id,
    start_date: start_date,
    end_date: end_date,
    limit: limit,
    included_question_ids: included_question_ids,
    max_rows: max_rows,
    use_labels: use_labels,
    decimal_format: decimal_format,
    seen_unanswered_recode: seen_unanswered_recode,
    use_local_time: use_local_time,
    spss_string_length: spss_string_length
  }
end

#startObject



24
25
26
27
28
# File 'lib/qualtrics_api/services/response_export_service.rb', line 24

def start
  response = QualtricsAPI.connection.get("surveys/#{survey_id}/responseExports", export_params)
  export_id = response.body["result"]["exportStatus"].split('/').last
  @result = ResponseExport.new(id: export_id)
end