Class: Discordrb::EmbedProvider

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

Overview

An Embed provider 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.


1995
1996
1997
# File 'lib/discordrb/data.rb', line 1995

def embed
  @embed
end

#nameString (readonly)

Returns the provider's name.

Returns:

  • (String)

    the provider's name.


1998
1999
2000
# File 'lib/discordrb/data.rb', line 1998

def name
  @name
end

#urlString? (readonly)

Returns the URL of the provider. nil is there is no URL.

Returns:

  • (String, nil)

    the URL of the provider. nil is there is no URL


2001
2002
2003
# File 'lib/discordrb/data.rb', line 2001

def url
  @url
end