class TocaroWebhook::Payload::Attachments::Attachment
Public Class Methods
new(options={}, &block)
click to toggle source
# File lib/tocaro_webhook/payload.rb, line 48 def initialize(options={}, &block) @title = options[:title] || "" @value = options[:value] || "" @image_url = options[:image_url] || "" end
Public Instance Methods
to_attributes_array()
click to toggle source
# File lib/tocaro_webhook/payload.rb, line 54 def to_attributes_array { title: @title, value: @value, image_url: @image_url } end