Class: MijDiscord::Data::EmbedProvider
- Inherits:
-
Object
- Object
- MijDiscord::Data::EmbedProvider
- Defined in:
- lib/mij-discord/data/embed.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ EmbedProvider
constructor
A new instance of EmbedProvider.
Constructor Details
#initialize(data) ⇒ EmbedProvider
Returns a new instance of EmbedProvider.
99 100 101 |
# File 'lib/mij-discord/data/embed.rb', line 99 def initialize(data) @name, @url = data['name'], data['url'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
95 96 97 |
# File 'lib/mij-discord/data/embed.rb', line 95 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
97 98 99 |
# File 'lib/mij-discord/data/embed.rb', line 97 def url @url end |