class Website::News

Included Modules

Defined in:

website/models/news.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(slug : String, title : String, description : String, author_name : String, author_github : String, content : String) #

[View source]

Class Method Detail

def self.all : Array(News) #

[View source]
def self.get(slug : String) : News | Nil #

[View source]
def self.page(page : Int) : Array(News) #

[View source]

Instance Method Detail

def author_github : String #

[View source]
def author_name : String #

[View source]
def description : String #

[View source]
def formatted_publication_date #

[View source]
def html #

[View source]
def publication_date #

[View source]
def slug : String #

[View source]
def title : String #

[View source]