class SurveyMonkey::Recipients

Public Class Methods

new(*recipients) click to toggle source
# File lib/survey_monkey/recipients.rb, line 5
def initialize(*recipients)
  @recipients = ( recipients || Array.new )
end

Public Instance Methods

<<(recipient) click to toggle source
# File lib/survey_monkey/recipients.rb, line 15
def <<(recipient)
  @recipients << recipient
end
each(&block) click to toggle source
# File lib/survey_monkey/recipients.rb, line 9
def each(&block)
  @recipients.each do |recipient|
    block.call(recipient)
  end
end
empty?() click to toggle source
# File lib/survey_monkey/recipients.rb, line 23
def empty?
  count == 0
end
to_hash() click to toggle source
# File lib/survey_monkey/recipients.rb, line 19
def to_hash
  map { |e| e.to_hash }
end