Class: MijDiscord::Data::EmbedAuthor
- Inherits:
-
Object
- Object
- MijDiscord::Data::EmbedAuthor
- Defined in:
- lib/mij-discord/data/embed.rb
Instance Attribute Summary collapse
-
#icon_url ⇒ Object
readonly
Returns the value of attribute icon_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#proxy_icon_url ⇒ Object
readonly
Returns the value of attribute proxy_icon_url.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ EmbedAuthor
constructor
A new instance of EmbedAuthor.
Constructor Details
#initialize(data) ⇒ EmbedAuthor
Returns a new instance of EmbedAuthor.
88 89 90 91 |
# File 'lib/mij-discord/data/embed.rb', line 88 def initialize(data) @name, @url, @icon_url = data['name'], data['url'], data['icon_url'] @proxy_icon_url = data['proxy_icon_url'] end |
Instance Attribute Details
#icon_url ⇒ Object (readonly)
Returns the value of attribute icon_url.
84 85 86 |
# File 'lib/mij-discord/data/embed.rb', line 84 def icon_url @icon_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
80 81 82 |
# File 'lib/mij-discord/data/embed.rb', line 80 def name @name end |
#proxy_icon_url ⇒ Object (readonly)
Returns the value of attribute proxy_icon_url.
86 87 88 |
# File 'lib/mij-discord/data/embed.rb', line 86 def proxy_icon_url @proxy_icon_url end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
82 83 84 |
# File 'lib/mij-discord/data/embed.rb', line 82 def url @url end |