Class: Ruqqus::Post

Inherits:
Submission show all
Defined in:
lib/ruqqus/types/post.rb

Overview

Represents a post on Ruqqus.

Instance Attribute Summary collapse

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

#==, #banned?, from_json

Instance Attribute Details

#author_titleTitle? (readonly)

Returns the title assigned to the author, or nil if none is defined.

Returns:

  • (Title?)

    the title assigned to the author, or nil if none is defined.



# File 'lib/ruqqus/types/post.rb', line 16

#comment_countInteger (readonly)

Returns the number of comments made on the post.

Returns:

  • (Integer)

    the number of comments made on the post.



# File 'lib/ruqqus/types/post.rb', line 20

#domainString (readonly)

Returns the domain name for link posts, otherwise a short descriptor of the post type.

Returns:

  • (String)

    the domain name for link posts, otherwise a short descriptor of the post type.



# File 'lib/ruqqus/types/post.rb', line 24

#embed_urlString (readonly)

Returns the embed URL for the post.

Returns:

  • (String)

    the embed URL for the post.



# File 'lib/ruqqus/types/post.rb', line 28

#original_guild_nameString (readonly)

Returns the name of the guild this post was originally posted in.

Returns:

  • (String)

    the name of the guild this post was originally posted in.



# File 'lib/ruqqus/types/post.rb', line 32

#thumb_urlString? (readonly)

Returns the URL of the post's thumbnail image, or nil if none exists.

Returns:

  • (String?)

    the URL of the post's thumbnail image, or nil if none exists.



# File 'lib/ruqqus/types/post.rb', line 8

#urlString? (readonly)

Returns the URL the post links to, or nil if none is specified.

Returns:

  • (String?)

    the URL the post links to, or nil if none is specified.



# File 'lib/ruqqus/types/post.rb', line 12