class Cryap::Database::Models::Media

Defined in:

models/media.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

def self.new(unpacker : Neo4j::PackStream::Unpacker) #

Class Method Detail

def self.by_id(id : KSUID) #

def self.by_url(source_url : URI) #

def self.from_bolt(unpacker : Neo4j::PackStream::Unpacker) #

Instance Method Detail

def created_at : Time #

def delete #

def description : String #

def id : KSUID #

def mime_type : String #

def source_url : String #


def url : String #

def url=(url) #