Class: Mastodon::Emoji

Inherits:
Base
  • Object
show all
Defined in:
lib/mastodon/emoji.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

collection_attr_reader, define_attribute_method, define_predicate_method, normal_attr_reader, object_attr_reader, predicate_attr_reader

Constructor Details

#initialize(attributes = {}) ⇒ Emoji

Returns a new instance of Emoji.



16
17
18
19
# File 'lib/mastodon/emoji.rb', line 16

def initialize(attributes = {})
  attributes.fetch('shortcode')
  super
end

Instance Attribute Details

#shortcodeString (readonly)

Returns:

  • (String)


12
# File 'lib/mastodon/emoji.rb', line 12

normal_attr_reader :shortcode, :static_url, :url

#static_urlString (readonly)

Returns:

  • (String)


12
# File 'lib/mastodon/emoji.rb', line 12

normal_attr_reader :shortcode, :static_url, :url

#urlString (readonly)

Returns:

  • (String)


12
# File 'lib/mastodon/emoji.rb', line 12

normal_attr_reader :shortcode, :static_url, :url

#visible_in_picker?Boolean (readonly)

Returns:

  • (Boolean)


12
# File 'lib/mastodon/emoji.rb', line 12

normal_attr_reader :shortcode, :static_url, :url