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
Postinstance.
Instance Method Summary
-
#content : String
The
#contentproperty represents the post's content. -
#content=(content : String)
The
#contentproperty represents the post's content. -
#email : String | Nil
The
#emailproperty represents the post's linked email. -
#email=(email : String | Nil)
The
#emailproperty represents the post's linked email. -
#frozen : Bool
The
#frozenproperty represents whether a post has been locked for further replies. -
#frozen=(frozen : Bool)
The
#frozenproperty represents whether a post has been locked for further replies. -
#id : Int64
The
#idproperty is the post's unique ID. -
#ip : String
The
#ipproperty is the post's originating IP. -
#ip=(ip : String)
The
#ipproperty is the post's originating IP. -
#name : String | Nil
The
#nameproperty represents the post's username. -
#name=(name : String | Nil)
The
#nameproperty represents the post's username. -
#parent : Int64 | Nil
The
#parentproperty is a reply's parent thread. -
#parent=(parent : Int64 | Nil)
The
#parentproperty is a reply's parent thread. -
#replies : Int64
The
#repliesproperty represents the number of replies that a post contains. -
#replies=(replies : Int64)
The
#repliesproperty represents the number of replies that a post contains. -
#subject : String | Nil
The
#subjectproperty represents the post's subject. -
#subject=(subject : String | Nil)
The
#subjectproperty represents the post's subject. -
#time : Time
The
#timeproperty is the time that the post was created at. -
#time=(time : Time)
The
#timeproperty 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.