Class: Rubycord::EmbedProvider

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



181
182
183
# File 'lib/rubycord/data/embed.rb', line 181

def embed
  @embed
end

#nameString (readonly)

Returns the provider's name.

Returns:

  • (String)

    the provider's name.



184
185
186
# File 'lib/rubycord/data/embed.rb', line 184

def name
  @name
end

#urlString? (readonly)

Returns the URL of the provider, or nil if there is no URL.

Returns:

  • (String, nil)

    the URL of the provider, or nil if there is no URL.



187
188
189
# File 'lib/rubycord/data/embed.rb', line 187

def url
  @url
end