class Post
- Post
- Reference
- Object
Overview
The Post
class is a representation of a post or comment.
Defined in:
models/post.crConstructors
-
.new(id : Int64)
Initializes a new
Post
instance.
Instance Method Summary
-
#content : String
The
#content
property represents the post's content. -
#content=(content : String)
The
#content
property represents the post's content. -
#email : String | Nil
The
#email
property represents the post's linked email. -
#email=(email : String | Nil)
The
#email
property represents the post's linked email. -
#frozen : Bool
The
#frozen
property represents whether a post has been locked for further replies. -
#frozen=(frozen : Bool)
The
#frozen
property represents whether a post has been locked for further replies. -
#id : Int64
The
#id
property is the post's unique ID. -
#ip : String
The
#ip
property is the post's originating IP. -
#ip=(ip : String)
The
#ip
property is the post's originating IP. -
#name : String | Nil
The
#name
property represents the post's username. -
#name=(name : String | Nil)
The
#name
property represents the post's username. -
#parent : Int64 | Nil
The
#parent
property is a reply's parent thread. -
#parent=(parent : Int64 | Nil)
The
#parent
property is a reply's parent thread. -
#replies : Int64
The
#replies
property represents the number of replies that a post contains. -
#replies=(replies : Int64)
The
#replies
property represents the number of replies that a post contains. -
#subject : String | Nil
The
#subject
property represents the post's subject. -
#subject=(subject : String | Nil)
The
#subject
property represents the post's subject. -
#time : Time
The
#time
property is the time that the post was created at. -
#time=(time : Time)
The
#time
property is the time that the post was created at.
Constructor Detail
Instance Method Detail
The #frozen
property represents whether a post has been locked for further replies.
The #frozen
property represents whether a post has been locked for further replies.
The #ip
property is the post's originating IP.
FIXME If behind a reverse proxy, IPs can be useless for moderation purposes. Implement CSRF checks.
The #ip
property is the post's originating IP.
FIXME If behind a reverse proxy, IPs can be useless for moderation purposes. Implement CSRF checks.
The #replies
property represents the number of replies that a post contains.