Class: Mastodon::Status

Inherits:
Base
  • Object
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


91
92
93
94
# File 'lib/mastodon/status.rb', line 91

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

Instance Attribute Details

#accountMastodon::Account (readonly)


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

#applicationMastodon::Entities::App (readonly)


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

#cardMastodon::Card (readonly)


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

#contentString (readonly)


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_atString (readonly)


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

#emojisMastodon::Collection<Mastodon::Emoji> (readonly)


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 (readonly)


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_countInteger (readonly)


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

#idString (readonly)


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_idString (readonly)


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_idString (readonly)


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

#languageString (readonly)


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

#media_attachmentsMastodon::Collection<Mastodon::Entities::Media> (readonly)


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

#mentionsMastodon::Collection<Mastodon::Entities::Mention> (readonly)


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 (readonly)


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 (readonly)


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

#reblogMastodon::Status (readonly)


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 (readonly)


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_countInteger (readonly)


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 (readonly)


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_textString (readonly)


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

#tagsMastodon::Collection<Mastodon::Entities::Hashtag> (readonly)


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

#uriString (readonly)


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

#urlString (readonly)


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

#visibilityString (readonly)


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