Class: Discordrb::EmbedField

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/embed.rb

Overview

An Embed field for the embed object

Instance Attribute Summary collapse

Instance Attribute Details

#embedEmbed (readonly)

Returns the embed object this is based on.

Returns:

  • (Embed)

    the embed object this is based on.



286
287
288
# File 'lib/discordrb/data/embed.rb', line 286

def embed
  @embed
end

#inlinetrue, false (readonly)

Returns whether this field is inline.

Returns:

  • (true, false)

    whether this field is inline.



295
296
297
# File 'lib/discordrb/data/embed.rb', line 295

def inline
  @inline
end

#nameString (readonly)

Returns the field's name.

Returns:

  • (String)

    the field's name.



289
290
291
# File 'lib/discordrb/data/embed.rb', line 289

def name
  @name
end

#valueString (readonly)

Returns the field's value.

Returns:

  • (String)

    the field's value.



292
293
294
# File 'lib/discordrb/data/embed.rb', line 292

def value
  @value
end