Class: Messenger::Elements::Video

Inherits:
Object
  • Object
show all
Includes:
Components::Attachment
Defined in:
lib/messenger/components/elements/video.rb

Constant Summary collapse

ATTRIBUTES =
%w(url).freeze

Instance Attribute Summary collapse

Attributes included from Components::Attachment

#type

Instance Method Summary collapse

Methods included from Components::Attachment

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

Constructor Details

#initialize(url:) ⇒ Video

Returns a new instance of Video.



12
13
14
15
# File 'lib/messenger/components/elements/video.rb', line 12

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

Instance Attribute Details

#urlObject

Returns the value of attribute url.



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

def url
  @url
end