Class: Mastodon::Account
- Inherits:
-
Base
- Object
- Base
- Mastodon::Account
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
#acct ⇒ 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 ⇒ 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_static ⇒ 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
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_at ⇒ 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_name ⇒ 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
|
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
|
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_count ⇒ 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_count ⇒ 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
|
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
|
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
|
#id ⇒ 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
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
|
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
|
#note ⇒ 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_count ⇒ 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
|
#url ⇒ 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
|
#username ⇒ 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
|