class Post

Overview

The Post class is a representation of a post or comment.

Defined in:

models/post.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Int64) #

Initializes a new Post instance.


[View source]

Instance Method Detail

def content : String #

The #content property represents the post's content.


[View source]
def content=(content : String) #

The #content property represents the post's content.


[View source]
def email : String | Nil #

The #email property represents the post's linked email.


[View source]
def email=(email : String | Nil) #

The #email property represents the post's linked email.


[View source]
def frozen : Bool #

The #frozen property represents whether a post has been locked for further replies.


[View source]
def frozen=(frozen : Bool) #

The #frozen property represents whether a post has been locked for further replies.


[View source]
def id : Int64 #

The #id property is the post's unique ID.


[View source]
def ip : String #

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.


[View source]
def ip=(ip : String) #

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.


[View source]
def name : String | Nil #

The #name property represents the post's username.


[View source]
def name=(name : String | Nil) #

The #name property represents the post's username.


[View source]
def parent : Int64 | Nil #

The #parent property is a reply's parent thread.


[View source]
def parent=(parent : Int64 | Nil) #

The #parent property is a reply's parent thread.


[View source]
def replies : Int64 #

The #replies property represents the number of replies that a post contains.


[View source]
def replies=(replies : Int64) #

The #replies property represents the number of replies that a post contains.


[View source]
def subject : String | Nil #

The #subject property represents the post's subject.


[View source]
def subject=(subject : String | Nil) #

The #subject property represents the post's subject.


[View source]
def time : Time #

The #time property is the time that the post was created at.


[View source]
def time=(time : Time) #

The #time property is the time that the post was created at.


[View source]