Module: Surveygizmo::Client::SurveyStatistic

Included in:
Surveygizmo::Client
Defined in:
lib/surveygizmo/client/survey_statistic.rb

Overview

Defines methods related to a SurveyGizmo survey statistic

Instance Method Summary collapse

Instance Method Details

#survey_statistic(survey_id, id) ⇒ Object

Returns survey statstic details for a given id

Parameters:

  • survey_id (Integer, String)

    Specify the survey to the response to get

  • id (Integer, String)

    Specify the response to get



16
17
18
# File 'lib/surveygizmo/client/survey_statistic.rb', line 16

def survey_statistic(survey_id, id)
  get("survey/#{survey_id}/surveystatistic/#{id}")
end

#survey_statistics(survey_id, options = {}) ⇒ Object

List all survey statistics for a given survey

Parameters:

  • survey_id (Integer, String)

    Specify the survey to the responses to get



9
10
11
# File 'lib/surveygizmo/client/survey_statistic.rb', line 9

def survey_statistics(survey_id, options = {})
  get("survey/#{survey_id}/surveystatistic", options)
end