Class: GrapeOAS::Introspectors::DryIntrospectorSupport::ConstraintExtractor::ConstraintSet
- Inherits:
-
Object
- Object
- GrapeOAS::Introspectors::DryIntrospectorSupport::ConstraintExtractor::ConstraintSet
- Defined in:
- lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb
Overview
Value object holding all possible constraints extracted from a Dry contract.
Instance Attribute Summary collapse
-
#enum ⇒ Object
Returns the value of attribute enum.
-
#excluded_values ⇒ Object
Returns the value of attribute excluded_values.
-
#exclusive_maximum ⇒ Object
Returns the value of attribute exclusive_maximum.
-
#exclusive_minimum ⇒ Object
Returns the value of attribute exclusive_minimum.
-
#extensions ⇒ Object
Returns the value of attribute extensions.
-
#format ⇒ Object
Returns the value of attribute format.
-
#max_size ⇒ Object
Returns the value of attribute max_size.
-
#maximum ⇒ Object
Returns the value of attribute maximum.
-
#min_size ⇒ Object
Returns the value of attribute min_size.
-
#minimum ⇒ Object
Returns the value of attribute minimum.
-
#nullable ⇒ Object
Returns the value of attribute nullable.
-
#parity ⇒ Object
Returns the value of attribute parity.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#required ⇒ Object
Returns the value of attribute required.
-
#type_predicate ⇒ Object
Returns the value of attribute type_predicate.
-
#unhandled_predicates ⇒ Object
Returns the value of attribute unhandled_predicates.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ConstraintSet
constructor
A new instance of ConstraintSet.
Constructor Details
#initialize(**attrs) ⇒ ConstraintSet
Returns a new instance of ConstraintSet.
16 17 18 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 16 def initialize(**attrs) attrs.each { |k, v| public_send(:"#{k}=", v) } end |
Instance Attribute Details
#enum ⇒ Object
Returns the value of attribute enum.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def enum @enum end |
#excluded_values ⇒ Object
Returns the value of attribute excluded_values.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def excluded_values @excluded_values end |
#exclusive_maximum ⇒ Object
Returns the value of attribute exclusive_maximum.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def exclusive_maximum @exclusive_maximum end |
#exclusive_minimum ⇒ Object
Returns the value of attribute exclusive_minimum.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def exclusive_minimum @exclusive_minimum end |
#extensions ⇒ Object
Returns the value of attribute extensions.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def extensions @extensions end |
#format ⇒ Object
Returns the value of attribute format.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def format @format end |
#max_size ⇒ Object
Returns the value of attribute max_size.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def max_size @max_size end |
#maximum ⇒ Object
Returns the value of attribute maximum.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def maximum @maximum end |
#min_size ⇒ Object
Returns the value of attribute min_size.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def min_size @min_size end |
#minimum ⇒ Object
Returns the value of attribute minimum.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def minimum @minimum end |
#nullable ⇒ Object
Returns the value of attribute nullable.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def nullable @nullable end |
#parity ⇒ Object
Returns the value of attribute parity.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def parity @parity end |
#pattern ⇒ Object
Returns the value of attribute pattern.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def pattern @pattern end |
#required ⇒ Object
Returns the value of attribute required.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def required @required end |
#type_predicate ⇒ Object
Returns the value of attribute type_predicate.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def type_predicate @type_predicate end |
#unhandled_predicates ⇒ Object
Returns the value of attribute unhandled_predicates.
11 12 13 |
# File 'lib/grape_oas/introspectors/dry_introspector_support/constraint_extractor.rb', line 11 def unhandled_predicates @unhandled_predicates end |