abstract class FormObject::AbstractForm
- FormObject::AbstractForm
- Reference
- Object
Overview
Base abstract form object class.
Works with any kind of object but needs some abstract methods implementation:
- #persist
- #valid?
Included Modules
Extended Modules
Direct Known Subclasses
Defined in:
form_object/abstract_form.crConstructors
Class Method Summary
- .coercer
- .go_deep_json(pull, context, depth = -1)
- .parse(request)
- .parse_json_array(pull, context_collection)
- .parse_json_object(pull, context)
- .read_json_form(request, context)
- .read_multipart_form(request, context)
- .read_query_params(request, context)
- .read_url_encoded_form(request, context)
Instance Method Summary
- #assign_fields(context)
-
#persist
Persists resource.
-
#save
Synchronizes attributes and persists resource.
- #skip
-
#valid?
Returns whether form object is valid.
-
#verify(request : HTTP::Request)
Parses given request data, assigns them and validates.