Module: Surveygizmo::Client::SurveyQuestion

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

Overview

Defines methods related to a SurveyGizmo survey question

Instance Method Summary collapse

Instance Method Details

#survey_question(survey_id, id) ⇒ Object

Returns survey question details for a given id


17
18
19
# File 'lib/surveygizmo/client/survey_question.rb', line 17

def survey_question(survey_id, id)
  get("survey/#{survey_id}/surveyquestion/#{id}")
end

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

List all survey questions for a given survey


10
11
12
# File 'lib/surveygizmo/client/survey_question.rb', line 10

def survey_questions(survey_id, options = {})
  get("survey/#{survey_id}/surveyquestion", options)
end