Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
davbooru
master
Davbooru
ImportantAuthHandler
Indexer
Post
QueryBuilder
Tag
Generated using Crystal 1.16.3
2025-10-10 02:08:11 UTC
class
Post
Post
Reference
Object
Defined in:
models/post.cr
Constructors
.new
(id : Int64, url : String, kudos : Int64, indexer : Indexer)
Class Method Summary
.from_row
(row : DB::ResultSet, indexer : Indexer)
Instance Method Summary
#id
: Int64
#kudos
: Int64
#name
#path
#thumbnail
(force : Bool =
false
)
#thumbnail=
(thumbnail : String | Nil)
#type
#url
: String
Constructor Detail
def self.
new
(id : Int64, url : String, kudos : Int64, indexer :
Indexer
)
#
[
View source
]
Class Method Detail
def self.
from_row
(row : DB::ResultSet, indexer :
Indexer
)
#
[
View source
]
Instance Method Detail
def
id
: Int64
#
[
View source
]
def
kudos
: Int64
#
[
View source
]
def
name
#
[
View source
]
def
path
#
[
View source
]
def
thumbnail
(force : Bool =
false
)
#
[
View source
]
def
thumbnail=
(thumbnail : String | Nil)
#
[
View source
]
def
type
#
[
View source
]
def
url
: String
#
[
View source
]