Class: Roart::AttachmentCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/roart/attachment.rb

Instance Method Summary collapse

Instance Method Details

#to_payloadObject



4
5
6
7
8
9
10
# File 'lib/roart/attachment.rb', line 4

def to_payload
  hash = Hash.new
  self.each_with_index do |attach, index|
    hash["attachment_#{index+1}"] = attach.file
  end
  hash
end