Class: OnyxCord::Components::MediaGallery::Item
- Inherits:
-
Object
- Object
- OnyxCord::Components::MediaGallery::Item
- Defined in:
- lib/onyxcord/models/component.rb
Overview
A singular media attachment.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The alternative text for the gallery item's media.
-
#media ⇒ MediaItem
readonly
The unfurled media content of the gallery item.
-
#spoiler ⇒ true, false
(also: #spoiler?)
readonly
Whether or not the gallery item's media should be blurred out.
Instance Attribute Details
#description ⇒ String? (readonly)
Returns the alternative text for the gallery item's media.
348 349 350 |
# File 'lib/onyxcord/models/component.rb', line 348 def description @description end |
#media ⇒ MediaItem (readonly)
Returns the unfurled media content of the gallery item.
340 341 342 |
# File 'lib/onyxcord/models/component.rb', line 340 def media @media end |
#spoiler ⇒ true, false (readonly) Also known as: spoiler?
Returns whether or not the gallery item's media should be blurred out.
344 345 346 |
# File 'lib/onyxcord/models/component.rb', line 344 def spoiler @spoiler end |