Class: Messenger::Elements::Image
- Inherits:
-
Components::Attachment
- Object
- Components::Attachment
- Messenger::Elements::Image
- Defined in:
- lib/messenger/components/elements/image.rb
Constant Summary collapse
- ATTRIBUTES =
%w(url).freeze
Instance Method Summary collapse
-
#initialize(url:) ⇒ Image
constructor
A new instance of Image.
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 |