Sha256: 95351029c69eda696dc6d67f4ae370ff8f886aa274f9cefcad24b4919767cb57

Contents?: true

Size: 461 Bytes

Versions: 4

Compression:

Stored size: 461 Bytes

Contents

# rubocop:disable Metrics/MethodLength
module UI
  # https://developers.facebook.com/docs/messenger-platform/send-api-reference/image-attachment
  class ImageAttachment < UI::BaseUiElement
    def initialize(url)
      @template = {
        recipient: {
          id: nil
        },
        message: {
          attachment: {
            type: 'image',
            payload: {
              url: url
            }
          }
        }
      }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubotnik-0.2.3 lib/ui/image_attachment.rb
rubotnik-0.2.2 lib/ui/image_attachment.rb
rubotnik-0.2.1 lib/ui/image_attachment.rb
rubotnik-0.2.0 lib/ui/image_attachment.rb