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


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

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

Instance Attribute Details

#acctString (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

#avatarString (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

#avatar_staticString (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

#bot?Boolean (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

#created_atString (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

#display_nameString (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

#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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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