Class: Mastodon::Status
- Inherits:
-
Base
- Object
- Base
- Mastodon::Status
show all
- Defined in:
- lib/mastodon/status.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 = {}) ⇒ Status
Returns a new instance of Status.
91
92
93
94
|
# File 'lib/mastodon/status.rb', line 91
def initialize(attributes = {})
attributes.fetch('id')
super
end
|
Instance Attribute Details
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#content ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#created_at ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#favourited? ⇒ Boolean
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#favourites_count ⇒ Integer
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#id ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#in_reply_to_account_id ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#in_reply_to_id ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#language ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#muted? ⇒ Boolean
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#pinned? ⇒ Boolean
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#reblogged? ⇒ Boolean
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#reblogs_count ⇒ Integer
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#sensitive? ⇒ Boolean
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#spoiler_text ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#uri ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#url ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|
#visibility ⇒ String
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'lib/mastodon/status.rb', line 62
normal_attr_reader :id,
:content,
:in_reply_to_id,
:in_reply_to_account_id,
:url,
:uri,
:created_at,
:reblogs_count,
:favourites_count,
:visibility,
:spoiler_text,
:language
|