Module: Surveygizmo::Client::Contact
- Included in:
- Surveygizmo::Client
- Defined in:
- lib/surveygizmo/client/contact.rb
Overview
Defines methods related to a SurveyGizmo contact
Instance Method Summary collapse
-
#contact(survey_id, survey_campaign_id, id) ⇒ Object
Returns contact details for a given id.
-
#contacts(survey_id, survey_campaign_id) ⇒ Object
List all contacts.
Instance Method Details
#contact(survey_id, survey_campaign_id, id) ⇒ Object
Returns contact details for a given id
18 19 20 |
# File 'lib/surveygizmo/client/contact.rb', line 18 def contact(survey_id, survey_campaign_id, id) get("survey/#{survey_id}/surveycampaign/#{survey_campaign_id}/contact/#{id}") end |
#contacts(survey_id, survey_campaign_id) ⇒ Object
List all contacts
10 11 12 |
# File 'lib/surveygizmo/client/contact.rb', line 10 def contacts(survey_id, survey_campaign_id) get("survey/#{survey_id}/surveycampaign/#{survey_campaign_id}/contact") end |