Class: Rubycord::EmbedField

Inherits:
Object
  • Object
show all
Defined in:
lib/rubycord/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.



229
230
231
# File 'lib/rubycord/data/embed.rb', line 229

def embed
  @embed
end

#inlinetrue, false (readonly)

Returns whether this field is inline.

Returns:

  • (true, false)

    whether this field is inline.



238
239
240
# File 'lib/rubycord/data/embed.rb', line 238

def inline
  @inline
end

#nameString (readonly)

Returns the field's name.

Returns:

  • (String)

    the field's name.



232
233
234
# File 'lib/rubycord/data/embed.rb', line 232

def name
  @name
end

#valueString (readonly)

Returns the field's value.

Returns:

  • (String)

    the field's value.



235
236
237
# File 'lib/rubycord/data/embed.rb', line 235

def value
  @value
end