Class: TocaroWebhook::Payload::Attachments

Inherits:
Array
  • Object
show all
Defined in:
lib/tocaro_webhook/payload.rb

Defined Under Namespace

Classes: Attachment

Instance Method Summary collapse

Instance Method Details

#add(options = {}) ⇒ Object



39
40
41
# File 'lib/tocaro_webhook/payload.rb', line 39

def add(options={})
  self << Attachment.new(options)
end

#to_aObject



43
44
45
# File 'lib/tocaro_webhook/payload.rb', line 43

def to_a
  self.map { |attachment| attachment.to_attributes_array }
end