Class: MijDiscord::Data::EmbedField
- Inherits:
-
Object
- Object
- MijDiscord::Data::EmbedField
- Defined in:
- lib/mij-discord/data/embed.rb
Instance Attribute Summary collapse
-
#inline ⇒ Object
readonly
Returns the value of attribute inline.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(data) ⇒ EmbedField
constructor
A new instance of EmbedField.
Constructor Details
#initialize(data) ⇒ EmbedField
Returns a new instance of EmbedField.
111 112 113 |
# File 'lib/mij-discord/data/embed.rb', line 111 def initialize(data) @name, @value, @inline = data['name'], data['value'], data['inline'] end |
Instance Attribute Details
#inline ⇒ Object (readonly)
Returns the value of attribute inline.
109 110 111 |
# File 'lib/mij-discord/data/embed.rb', line 109 def inline @inline end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
105 106 107 |
# File 'lib/mij-discord/data/embed.rb', line 105 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
107 108 109 |
# File 'lib/mij-discord/data/embed.rb', line 107 def value @value end |