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

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

#accountMastodon::Account (readonly)

Returns:



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)

Returns:



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)

Returns:

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

Returns:

  • (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

#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)

Returns:

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

Returns:

  • (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

#idString (readonly)

Returns:

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

Returns:

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

Returns:

  • (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

#languageString (readonly)

Returns:

  • (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

#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)

Returns:

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

Returns:

  • (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

#reblogMastodon::Status (readonly)

Returns:



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)

Returns:

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

Returns:

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

Returns:

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

Returns:

  • (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

#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)

Returns:

  • (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

#urlString (readonly)

Returns:

  • (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

#visibilityString (readonly)

Returns:

  • (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