Class: MijDiscord::Data::EmbedMedia
- Inherits:
-
Object
- Object
- MijDiscord::Data::EmbedMedia
- Defined in:
- lib/mij-discord/data/embed.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#proxy_url ⇒ Object
readonly
Returns the value of attribute proxy_url.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(data) ⇒ EmbedMedia
constructor
A new instance of EmbedMedia.
Constructor Details
#initialize(data) ⇒ EmbedMedia
Returns a new instance of EmbedMedia.
73 74 75 76 |
# File 'lib/mij-discord/data/embed.rb', line 73 def initialize(data) @url, @width, @height = data['url'], data['width'], data['height'] @proxy_url = data['proxy_url'] end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
71 72 73 |
# File 'lib/mij-discord/data/embed.rb', line 71 def height @height end |
#proxy_url ⇒ Object (readonly)
Returns the value of attribute proxy_url.
67 68 69 |
# File 'lib/mij-discord/data/embed.rb', line 67 def proxy_url @proxy_url end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
65 66 67 |
# File 'lib/mij-discord/data/embed.rb', line 65 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
69 70 71 |
# File 'lib/mij-discord/data/embed.rb', line 69 def width @width end |