abstract class FormObject::AbstractForm

Overview

Base abstract form object class.

Works with any kind of object but needs some abstract methods implementation:

Included Modules

Extended Modules

Direct Known Subclasses

Defined in:

form_object/abstract_form.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.coercer #

[View source]
def self.go_deep_json(pull, context, depth = -1) #

[View source]
def self.parse(request) #

[View source]
def self.parse_json_array(pull, context_collection) #

[View source]
def self.parse_json_object(pull, context) #

[View source]
def self.read_json_form(request, context) #

[View source]
def self.read_multipart_form(request, context) #

[View source]
def self.read_query_params(request, context) #

[View source]
def self.read_url_encoded_form(request, context) #

[View source]

Instance Method Detail

abstract def assign_fields(context) #

[View source]
abstract def persist #

Persists resource.


[View source]
def save #

Synchronizes attributes and persists resource.


[View source]
def skip #

[View source]
abstract def valid? #

Returns whether form object is valid.


[View source]
def verify(request : HTTP::Request) #

Parses given request data, assigns them and validates.


[View source]