Class: Mastodon::Account

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

Returns a new instance of Account.



26
27
28
29
# File 'lib/mastodon/account.rb', line 26

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

Instance Attribute Details

#acctString (readonly)

Returns:

  • (String)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#avatarString (readonly)

Returns:

  • (String)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#followers_countInteger (readonly)

Returns:

  • (Integer)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#following_countInteger (readonly)

Returns:

  • (Integer)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#headerString (readonly)

Returns:

  • (String)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#idInteger (readonly)

Returns:

  • (Integer)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#noteString (readonly)

Returns:

  • (String)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#statuses_countInteger (readonly)

Returns:

  • (Integer)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#urlString (readonly)

Returns:

  • (String)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count

#usernameString (readonly)

Returns:

  • (String)


24
# File 'lib/mastodon/account.rb', line 24

normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count