module Athena::Validator::Metadata::GenericMetadata

Included Modules

Direct including types

Defined in:

metadata/generic_metadata.cr

Instance Method Summary

Instance methods inherited from module Athena::Validator::Metadata::MetadataInterface

cascading_strategy : AVD::Metadata::CascadingStrategy cascading_strategy, constraints : Array(AVD::Constraint) constraints, find_constraints(group : String) : Array(AVD::Constraint) find_constraints

Instance Method Detail

def add_constraint(constraint : AVD::Constraint) : AVD::Metadata::GenericMetadata #

Adds the provided constraint to self's #constraints array.

Sets #cascading_strategy to AVD::Metadata::CascadingStrategy::Cascade if the constraint is AVD::Constraints::Valid.


[View source]
def add_constraints(constraints : Array(AVD::Constraint)) : AVD::Metadata::GenericMetadata #

Adds each of the provided constraints to self.


[View source]
def cascading_strategy : AVD::Metadata::CascadingStrategy #

Returns the AVD::Metadata::CascadingStrategy for self.


[View source]
def constraints : Array(AVD::Constraint) #

[View source]
def find_constraints(group : String) : Array(AVD::Constraint) #

Returns an array of all constraints in the provided group.


[View source]