Class: MonkeyBusiness::Messages

Inherits:
ApiResource show all
Defined in:
lib/api/messages.rb

Overview

Abstraction of the Surveymonkey message resource and associated methods

Instance Attribute Summary

Attributes inherited from ApiResource

#path

Instance Method Summary collapse

Methods inherited from ApiResource

#initialize, #request

Constructor Details

This class inherits a constructor from MonkeyBusiness::ApiResource

Instance Method Details

#recipientsObject



14
15
16
17
18
# File 'lib/api/messages.rb', line 14

def recipients
  fail_without_id
  @options.merge!(options)
  Recipients.new(@api, @options.merge(options), @path)
end

#sendObject



8
9
10
11
12
# File 'lib/api/messages.rb', line 8

def send
  fail_without_id
  @options.merge!(options)
  @path += '/send'
end