Class: Messenger::Elements::Image

Inherits:
Components::Attachment show all
Defined in:
lib/messenger/components/elements/image.rb

Constant Summary collapse

ATTRIBUTES =
%w(url).freeze

Instance Method Summary collapse

Methods inherited from Components::Attachment

#all_attributes, #allowed_attribute?, #build, #build_elements, #payload

Constructor Details

#initialize(url:) ⇒ Image

Returns a new instance of Image.



8
9
10
11
# File 'lib/messenger/components/elements/image.rb', line 8

def initialize(url:)
  @url = url
  @type = 'image'
end