Class: MonkeyBusiness::Surveys
- Inherits:
-
ApiResource
- Object
- ApiResource
- MonkeyBusiness::Surveys
- Defined in:
- lib/api/surveys.rb
Overview
Abstraction of the Surveymonkey survey resource and associated methods
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
- #collectors(options = {}) ⇒ Object
- #details(options = {}) ⇒ Object
- #pages(options = {}) ⇒ Object
- #responses(options = {}) ⇒ Object
Methods inherited from ApiResource
Constructor Details
This class inherits a constructor from MonkeyBusiness::ApiResource
Instance Method Details
#collectors(options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/api/surveys.rb', line 23 def collectors( = {}) fail_without_id Collectors.new(@api, @options.merge(), @path) end |
#details(options = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/api/surveys.rb', line 11 def details( = {}) fail_without_id @options.merge!() @path += '/details' self end |