Class: Ruqqus::Post
- Inherits:
-
Submission
- Object
- ItemBase
- Submission
- Ruqqus::Post
- Defined in:
- lib/ruqqus/types/post.rb
Overview
Represents a post on Ruqqus.
Instance Attribute Summary collapse
-
#author_title ⇒ Title?
readonly
The title assigned to the author, or
nil
if none is defined. -
#comment_count ⇒ Integer
readonly
The number of comments made on the post.
-
#domain ⇒ String
readonly
The domain name for link posts, otherwise a short descriptor of the post type.
-
#embed_url ⇒ String
readonly
The embed URL for the post.
-
#original_guild_name ⇒ String
readonly
The name of the guild this post was originally posted in.
-
#thumb_url ⇒ String?
readonly
The URL of the post's thumbnail image, or
nil
if none exists. -
#url ⇒ String?
readonly
The URL the post links to, or
nil
if none is specified.
Attributes inherited from Submission
#author_name, #body, #body_html, #downvotes, #fullname, #guild_name, #last_edit, #last_edit_utc, #score, #title, #upvotes
Attributes inherited from ItemBase
#created, #created_utc, #id, #permalink
Method Summary
Methods inherited from Submission
#archived?, #deleted?, #edited?, #nsfl?, #nsfw?, #offensive?, #to_s
Methods inherited from ItemBase
Instance Attribute Details
#author_title ⇒ Title? (readonly)
Returns the title assigned to the author, or nil
if none is defined.
|
# File 'lib/ruqqus/types/post.rb', line 16
|
#comment_count ⇒ Integer (readonly)
Returns the number of comments made on the post.
|
# File 'lib/ruqqus/types/post.rb', line 20
|
#domain ⇒ String (readonly)
Returns the domain name for link posts, otherwise a short descriptor of the post type.
|
# File 'lib/ruqqus/types/post.rb', line 24
|
#embed_url ⇒ String (readonly)
Returns the embed URL for the post.
|
# File 'lib/ruqqus/types/post.rb', line 28
|
#original_guild_name ⇒ String (readonly)
Returns the name of the guild this post was originally posted in.
|
# File 'lib/ruqqus/types/post.rb', line 32
|
#thumb_url ⇒ String? (readonly)
Returns the URL of the post's thumbnail image, or nil
if none exists.
|
# File 'lib/ruqqus/types/post.rb', line 8
|
#url ⇒ String? (readonly)
Returns the URL the post links to, or nil
if none is specified.
|
# File 'lib/ruqqus/types/post.rb', line 12
|