Module: Fixtures::Integer
- Extended by:
- Integer
- Includes:
- Fixtures
- Included in:
- Integer
- Defined in:
- lib/data_model/fixtures/integer.rb
Overview
Test data for integer schemas
Instance Method Summary collapse
-
#max ⇒ Example
integer example that has a maximum value.
-
#min ⇒ Example
integer example that has a minimum value.
-
#optional ⇒ Example
integer example that is optional.
-
#simple ⇒ Hash{Symbol => untyped}
simple integer example.
Instance Method Details
#max ⇒ Example
integer example that has a maximum value
45 46 47 48 49 50 51 52 53 |
# File 'lib/data_model/fixtures/integer.rb', line 45 def max Example.new( [:integer, { max: 5 }], variants: { bigger: 6, smaller: 4 }, ) end |
#min ⇒ Example
integer example that has a minimum value
33 34 35 36 37 38 39 40 41 |
# File 'lib/data_model/fixtures/integer.rb', line 33 def min Example.new( [:integer, { min: 5 }], variants: { bigger: 6, smaller: 4 }, ) end |