struct Post

Included Modules

Defined in:

models/post.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, author : String, title : String, body : String, source : String, created_at : Time = Time.utc, published_at : Time | Nil = nil, popularity : Float64 = 0, comments : Nil | Array(Comment) = nil, tags : Nil | Array(String) = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def author : String #

[View source]
def body : String #

[View source]
def comments : Array(Comment) #

[View source]
def created_at : Time #

[View source]
def id : String #

[View source]
def popularity : Float64 #

[View source]
def published? #

[View source]
def published_at : Time | Nil #

[View source]
def source : String #

[View source]
def tags : Array(String) #

[View source]
def title : String #

[View source]