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.
57
58
59
60
|
# File 'lib/mastodon/account.rb', line 57
def initialize(attributes = {})
attributes.fetch('id')
super
end
|
Instance Attribute Details
#acct ⇒ String
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/mastodon/account.rb', line 38
normal_attr_reader :id,
:username,
:acct,
:display_name,
:created_at,
:url,
:avatar,
:avatar_static,
:header,
:header_static,
:note,
:followers_count,
:following_count,
:statuses_count
|