Module: Surveygizmo::Client::Survey
- Included in:
- Surveygizmo::Client
- Defined in:
- lib/surveygizmo/client/survey.rb
Overview
Defines methods related to a SurveyGizmo survey Polls, Quizzes, Forms, Registrations are all surveys with simple flags activated to change the behavior of the object
Instance Method Summary collapse
-
#polls ⇒ Object
Temporary, until SG implements filtering by subtype.
-
#survey(id, metaonly = false) ⇒ Object
Returns survey details for a given id.
-
#surveys(options = {}) ⇒ Object
List all surveys, optionally filtered.
Instance Method Details
#polls ⇒ Object
Temporary, until SG implements filtering by subtype
15 16 17 |
# File 'lib/surveygizmo/client/survey.rb', line 15 def polls surveys.select { |s| s._subtype == 'Poll' } end |
#survey(id, metaonly = false) ⇒ Object
Returns survey details for a given id
22 23 24 |
# File 'lib/surveygizmo/client/survey.rb', line 22 def survey(id, = false) get("survey/#{id}", :metaonly => ) end |
#surveys(options = {}) ⇒ Object
List all surveys, optionally filtered
10 11 12 |
# File 'lib/surveygizmo/client/survey.rb', line 10 def surveys( = {}) get('survey', ) end |