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.
26
27
28
29
|
# File 'lib/mastodon/account.rb', line 26
def initialize(attributes = {})
attributes.fetch('id')
super
end
|
Instance Attribute Details
#acct ⇒ 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
|
#avatar ⇒ 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_count ⇒ 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_count ⇒ 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
|
24
|
# File 'lib/mastodon/account.rb', line 24
normal_attr_reader :id, :username, :acct, :url, :avatar, :header, :note, :followers_count, :following_count, :statuses_count
|
#id ⇒ 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
|
#note ⇒ 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_count ⇒ 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
|
#url ⇒ 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
|
#username ⇒ 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
|