data Bezel::App
What every request of an application shares: its configuration and,
with a DATABASE_URL, the database's pool. Bezel.start makes it;
a test makes one with App.new(config).
skip_csrf is Bezel::Testing's: requests through Plug::CSRF need no
token. It comes from the program, never from a request, and is refused
in prod (Bezel::ConfigError at the first request it would skip).
Class methods
def self.test(name: String = …) -> Bezel::App
An application name in test, without a database: what a test of
an endpoint uses when it gives none.
Methods
def config -> Bezel::Config
def pool -> PG::Pool?
def skip_csrf -> Bool
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def with(*, config: Bezel::Config = …, pool: PG::Pool? = …, skip_csrf: Bool = …) -> Bezel::App
A copy with the fields given replaced.