Module: Surveygizmo::Client::SurveyCampaign

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

Overview

Defines methods related to a SurveyGizmo survey campaign

Instance Method Summary collapse

Instance Method Details

#survey_campaign(survey_id, id) ⇒ Object

Returns survey campaign details for a given id

Parameters:

  • survey_id (Integer, String)

    Specify the survey to the campaigns to get

  • id (Integer, String)

    Specify the campaign to get



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

def survey_campaign(survey_id, id)
  get("survey/#{survey_id}/surveycampaign/#{id}")
end

#survey_campaigns(survey_id) ⇒ Object

List all survey campaigns for a given survey

Parameters:

  • survey_id (Integer, String)

    Specify the survey to the campaigns to get



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

def survey_campaigns(survey_id)
  get("survey/#{survey_id}/surveycampaign")
end