Class: Mastodon::Emoji
- Inherits:
-
Base
- Object
- Base
- Mastodon::Emoji
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
#shortcode ⇒ String
12
|
# File 'lib/mastodon/emoji.rb', line 12
normal_attr_reader :shortcode, :static_url, :url
|
#static_url ⇒ String
12
|
# File 'lib/mastodon/emoji.rb', line 12
normal_attr_reader :shortcode, :static_url, :url
|
#url ⇒ String
12
|
# File 'lib/mastodon/emoji.rb', line 12
normal_attr_reader :shortcode, :static_url, :url
|
#visible_in_picker? ⇒ Boolean
12
|
# File 'lib/mastodon/emoji.rb', line 12
normal_attr_reader :shortcode, :static_url, :url
|