class
Cryap::Database::Models::Media
- Cryap::Database::Models::Media
- Cryap::Database::Model
- Reference
- Object
Defined in:
models/media.crConstructors
- .create(uploader : KSUID | Cryap::Database::Models::Account, mime_type : String, description : String, created_at : Time, url : URI | Nil = nil, source_url : URI | Nil = nil, id : KSUID = KSUID.new) : Media
- .new(url : String, source_url : String, mime_type : String, description : String, id : KSUID = KSUID.new, created_at : Time = Time.utc)
- .new(unpacker : Neo4j::PackStream::Unpacker)
Class Method Summary
Instance Method Summary
- #created_at : Time
- #delete
- #description : String
- #id : KSUID
- #mime_type : String
- #source_url : String
- #uploader : Cryap::Database::Models::LocalAccount
- #url : String
- #url=(url)
Instance methods inherited from class Cryap::Database::Model
node_id : Int64
node_id,
node_labels : Array(String)
node_labels,
paginate!(pagination : Cryap::API::Paginator, result : Array(String | Symbol), forward : Array(String | Symbol), column : Symbol, property : Symbol | Nil = nil, &) : Tuple(String, String | Nil)
paginate!
Constructor methods inherited from class Cryap::Database::Model
new(unpacker : Neo4j::PackStream::Unpacker)new(node : Neo4j::Node) new
Class methods inherited from class Cryap::Database::Model
from_bolt(unpacker : Neo4j::PackStream::Unpacker)from_bolt(io : IO) from_bolt, model_name model_name, paginate!(pagination : Cryap::API::Paginator, result : Array(String | Symbol), forward : Array(String | Symbol), column : Symbol, property : Symbol | Nil = nil, &) : Tuple(String, String | Nil) paginate!
Macros inherited from class Cryap::Database::Model
model(name)
model,
query!(&block)
query!
Constructor Detail
def self.create(uploader : KSUID | Cryap::Database::Models::Account, mime_type : String, description : String, created_at : Time, url : URI | Nil = nil, source_url : URI | Nil = nil, id : KSUID = KSUID.new) : Media
#
def self.new(url : String, source_url : String, mime_type : String, description : String, id : KSUID = KSUID.new, created_at : Time = Time.utc)
#