Class: Rubycord::EmbedVideo
- Inherits:
-
Object
- Object
- Rubycord::EmbedVideo
- Defined in:
- lib/rubycord/data/embed.rb
Overview
An Embed video for the embed object
Instance Attribute Summary collapse
-
#embed ⇒ Embed
readonly
The embed object this is based on.
-
#height ⇒ Integer
readonly
The height of the video, in pixels.
-
#url ⇒ String
readonly
The source URL of the video.
-
#width ⇒ Integer
readonly
The width of the video, in pixels.
Instance Attribute Details
#embed ⇒ Embed (readonly)
Returns the embed object this is based on.
128 129 130 |
# File 'lib/rubycord/data/embed.rb', line 128 def @embed end |
#height ⇒ Integer (readonly)
Returns the height of the video, in pixels.
137 138 139 |
# File 'lib/rubycord/data/embed.rb', line 137 def height @height end |
#url ⇒ String (readonly)
Returns the source URL of the video.
131 132 133 |
# File 'lib/rubycord/data/embed.rb', line 131 def url @url end |
#width ⇒ Integer (readonly)
Returns the width of the video, in pixels.
134 135 136 |
# File 'lib/rubycord/data/embed.rb', line 134 def width @width end |