Class: Rubyhexagon::DeletedPost
Overview
This class holds post information, fetched from e621, and gives access in a more Ruby like manner. This is only for deleted posts.
Instance Attribute Summary collapse
-
#reason ⇒ String
readonly
Deletion reason, when available.
Attributes inherited from Post
#artists, #author, #children, #created_at, #description, #favorites, #id, #image, #md5, #parent, #preview, #rating, #sample, #score, #sources, #status, #tag_names
Instance Method Summary collapse
-
#initialize(id, delreason) ⇒ Object
constructor
Initializer for DeletedPost.
Methods inherited from Post
#==, #favorite!, #show, #show!, #tags, #test, #unfavorite!, #vote!, #votedown!, #voteup!
Constructor Details
#initialize(id, delreason) ⇒ Object
Initializer for DeletedPost.
303 304 305 306 |
# File 'lib/rubyhexagon/post.rb', line 303 def initialize(id, delreason) super(id) @reason = delreason end |
Instance Attribute Details
#reason ⇒ String (readonly)
Returns deletion reason, when available.
293 294 295 |
# File 'lib/rubyhexagon/post.rb', line 293 def reason @reason end |