module SimpleParams::ValidationMatchers
Public Instance Methods
coerce_param(attr)
click to toggle source
# File lib/simple_params/validation_matchers/coercion_matcher.rb, line 3 def coerce_param(attr) CoercionMatcher.new(attr) end
format(attr)
click to toggle source
# File lib/simple_params/validation_matchers/format_matcher.rb, line 3 def format(attr) FormatMatcher.new(attr) end
have_nested_array(attr)
click to toggle source
# File lib/simple_params/validation_matchers/nested_array_matcher.rb, line 3 def have_nested_array(attr) NestedArrayMatcher.new(attr) end
have_nested_parameter(attr)
click to toggle source
# File lib/simple_params/validation_matchers/nested_parameter_matcher.rb, line 3 def have_nested_parameter(attr) NestedParameterMatcher.new(attr) end
have_optional_parameter(attr)
click to toggle source
# File lib/simple_params/validation_matchers/optional_parameter_matcher.rb, line 3 def have_optional_parameter(attr) OptionalParameterMatcher.new(attr) end
have_required_parameter(attr)
click to toggle source
# File lib/simple_params/validation_matchers/required_parameter_matcher.rb, line 3 def have_required_parameter(attr) RequiredParameterMatcher.new(attr) end