class TocaroWebhook::Payload::Attachments

Public Instance Methods

add(options={}) click to toggle source
# File lib/tocaro_webhook/payload.rb, line 39
def add(options={})
  self << Attachment.new(options)
end
to_a() click to toggle source
# File lib/tocaro_webhook/payload.rb, line 43
def to_a
  self.map { |attachment| attachment.to_attributes_array }
end