struct Trefoil::Image

Defined in:

trefoil/image.cr

Constant Summary

CDN_URL = "https://i.4cdn.org/"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(width : Int32, height : Int32, thumbnail_width : Int32, thumbnail_height : Int32, md5 : String, fsize : Int32, ext : String, filename : String, tim : Int32, board : String) #

[View source]

Class Method Detail

def self.from_post(post : Post) : Image | Nil #

[View source]

Instance Method Detail

def board : String #

[View source]
def ext : String #

[View source]
def filename : String #

[View source]
def fsize : Int32 #

[View source]
def height : Int32 #

[View source]
def md5 : String #

[View source]
def thumbnail_height : Int32 #

[View source]
def thumbnail_url #

[View source]
def thumbnail_width : Int32 #

[View source]
def tim : Int32 #

[View source]
def url #

[View source]
def width : Int32 #

[View source]