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