Class: MijDiscord::Data::EmbedField

Inherits:
Object
  • Object
show all
Defined in:
lib/mij-discord/data/embed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#inlineObject (readonly)

Returns the value of attribute inline.



109
110
111
# File 'lib/mij-discord/data/embed.rb', line 109

def inline
  @inline
end

#nameObject (readonly)

Returns the value of attribute name.



105
106
107
# File 'lib/mij-discord/data/embed.rb', line 105

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



107
108
109
# File 'lib/mij-discord/data/embed.rb', line 107

def value
  @value
end