Class: TocaroWebhook::Payload::Attachments::Attachment
- Inherits:
-
Object
- Object
- TocaroWebhook::Payload::Attachments::Attachment
- Defined in:
- lib/tocaro_webhook/payload.rb
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Attachment
constructor
A new instance of Attachment.
- #to_attributes_array ⇒ Object
Constructor Details
#initialize(options = {}, &block) ⇒ Attachment
Returns a new instance of Attachment.
48 49 50 51 52 |
# File 'lib/tocaro_webhook/payload.rb', line 48 def initialize(={}, &block) @title = [:title] || "" @value = [:value] || "" @image_url = [:image_url] || "" end |
Instance Method Details
#to_attributes_array ⇒ Object
54 55 56 |
# File 'lib/tocaro_webhook/payload.rb', line 54 def to_attributes_array { title: @title, value: @value, image_url: @image_url } end |