class
Cryap::Database::Models::Application
- Cryap::Database::Models::Application
- Cryap::Database::Model
- Reference
- Object
Defined in:
models/oauth2/application.crConstructors
- .create(id : KSUID, name : String, redirect_uri : String, website : String | Nil, scopes : Array(Cryap::API::OAuth2::Scope), _labels = ["Application"] of ::String) : Application
- .new(name : String, vapid_key, redirect_uri : String, id : String = KSUID.new, website : Nil | String = nil, client_id : String = nil, client_secret : String = nil, scopes : Array(Cryap::API::OAuth2::Scope) = [] of Cryap::API::OAuth2::Scope)
- .new(unpacker : Neo4j::PackStream::Unpacker)
Class Method Summary
- .by_client_id(client_id : String)
- .by_id(id : String)
- .from_bolt(unpacker : Neo4j::PackStream::Unpacker)
Instance Method Summary
- #client_id : String
- #client_secret : String
- #id : String
- #name : String
- #redirect_uri : String
- #scopes : Array(Cryap::API::OAuth2::Scope)
- #website : String | Nil
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(id : KSUID, name : String, redirect_uri : String, website : String | Nil, scopes : Array(Cryap::API::OAuth2::Scope), _labels = ["Application"] of ::String) : Application
#
def self.new(name : String, vapid_key, redirect_uri : String, id : String = KSUID.new, website : Nil | String = nil, client_id : String = nil, client_secret : String = nil, scopes : Array(Cryap::API::OAuth2::Scope) = [] of Cryap::API::OAuth2::Scope)
#