Class: TocaroWebhook::Payload::Attachments
- Inherits:
-
Array
- Object
- Array
- TocaroWebhook::Payload::Attachments
- 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(={}) self << Attachment.new() end |
#to_a ⇒ Object
43 44 45 |
# File 'lib/tocaro_webhook/payload.rb', line 43 def to_a self.map { || .to_attributes_array } end |