Class: Mastodon::Hashtag

Inherits:
Base
  • Object
show all
Defined in:
lib/mastodon/hashtag.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 = {}) ⇒ Hashtag

Returns a new instance of Hashtag.



14
15
16
17
# File 'lib/mastodon/hashtag.rb', line 14

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

Instance Attribute Details

#historyArray<Hash> (readonly)

Returns:

  • (Array<Hash>)


10
11
12
# File 'lib/mastodon/hashtag.rb', line 10

normal_attr_reader :name,
:url,
:history

#nameString (readonly)

Returns:

  • (String)


10
11
12
# File 'lib/mastodon/hashtag.rb', line 10

normal_attr_reader :name,
:url,
:history

#urlString (readonly)

Returns:

  • (String)


10
11
12
# File 'lib/mastodon/hashtag.rb', line 10

normal_attr_reader :name,
:url,
:history