Class: RubyCord::User::Activity::Asset
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- RubyCord::User::Activity::Asset
- Defined in:
- lib/rubycord/user/activity.rb
Overview
Represents the assets of an activity.
Instance Attribute Summary collapse
-
#large_image ⇒ String
(also: #large_id)
readonly
The large image ID or URL of the asset.
-
#large_text ⇒ String
readonly
The large text of the activity.
-
#small_image ⇒ String
(also: #small_id)
readonly
The small image ID or URL of the activity.
-
#small_text ⇒ String
readonly
The small text of the activity.
Instance Method Summary collapse
-
#initialize(data) ⇒ Asset
constructor
A new instance of Asset.
Methods inherited from DiscordModel
Constructor Details
#initialize(data) ⇒ Asset
Returns a new instance of Asset.
174 175 176 177 178 179 |
# File 'lib/rubycord/user/activity.rb', line 174 def initialize(data) @large_image = data[:large_image] @large_text = data[:large_text] @small_image = data[:small_image] @small_text = data[:small_text] end |
Instance Attribute Details
#large_image ⇒ String (readonly) Also known as: large_id
Returns The large image ID or URL of the asset.
164 165 166 |
# File 'lib/rubycord/user/activity.rb', line 164 def large_image @large_image end |
#large_text ⇒ String (readonly)
Returns The large text of the activity.
167 168 169 |
# File 'lib/rubycord/user/activity.rb', line 167 def large_text @large_text end |
#small_image ⇒ String (readonly) Also known as: small_id
Returns The small image ID or URL of the activity.
169 170 171 |
# File 'lib/rubycord/user/activity.rb', line 169 def small_image @small_image end |
#small_text ⇒ String (readonly)
Returns The small text of the activity.
172 173 174 |
# File 'lib/rubycord/user/activity.rb', line 172 def small_text @small_text end |