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.



68
69
70
71
# File 'lib/mastodon/account.rb', line 68

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

Instance Attribute Details

#acctString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#avatarString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#avatar_staticString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#bot?Boolean (readonly)

Returns:

  • (Boolean)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#created_atString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#display_nameString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#emojisMastodon::Collection<Mastodon::Emoji> (readonly)



45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#fieldsMastodon::Collection<Mastodon::Field> (readonly)



45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#followers_countInteger (readonly)

Returns:

  • (Integer)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#following_countInteger (readonly)

Returns:

  • (Integer)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#headerString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#header_staticString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#idString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#locked?Boolean (readonly)

Returns:

  • (Boolean)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#movedMastodon::Account (readonly)

Returns:



45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#noteString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#statuses_countInteger (readonly)

Returns:

  • (Integer)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#urlString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count

#usernameString (readonly)

Returns:

  • (String)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/mastodon/account.rb', line 45

normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count