Class: MijDiscord::Data::EmbedAuthor

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) ⇒ EmbedAuthor

Returns a new instance of EmbedAuthor.



88
89
90
91
# File 'lib/mij-discord/data/embed.rb', line 88

def initialize(data)
  @name, @url, @icon_url = data['name'], data['url'], data['icon_url']
  @proxy_icon_url = data['proxy_icon_url']
end

Instance Attribute Details

#icon_urlObject (readonly)

Returns the value of attribute icon_url.



84
85
86
# File 'lib/mij-discord/data/embed.rb', line 84

def icon_url
  @icon_url
end

#nameObject (readonly)

Returns the value of attribute name.



80
81
82
# File 'lib/mij-discord/data/embed.rb', line 80

def name
  @name
end

#proxy_icon_urlObject (readonly)

Returns the value of attribute proxy_icon_url.



86
87
88
# File 'lib/mij-discord/data/embed.rb', line 86

def proxy_icon_url
  @proxy_icon_url
end

#urlObject (readonly)

Returns the value of attribute url.



82
83
84
# File 'lib/mij-discord/data/embed.rb', line 82

def url
  @url
end