class Marten::Schema::BoundField

Overview

A field used in the context of a specific schema instance.

Included Modules

Defined in:

marten/schema/bound_field.cr
marten/template/ext/schema/bound_field.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(schema : Schema, field : Field::Base) #

[View source]

Instance Method Detail

def errored? #

Returns true if the field is errored.


[View source]
def errors #

Returns the validation errors associated with the considered field.


[View source]

Returns the associated field definition.


[View source]
def id(*args, **options) #

Returns the field identifier.


[View source]
def id(*args, **options, &) #

Returns the field identifier.


[View source]
def required?(*args, **options) #

Returns true if the field is required.


[View source]
def required?(*args, **options, &) #

Returns true if the field is required.


[View source]
def schema : Marten::Schema #

Returns the associated schema instance.


[View source]
def value #

Returns the field value.


[View source]