Class: JSONAPIonify::Types::FloatType
- Defined in:
- lib/jsonapionify/types/float_type.rb
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
Methods inherited from BaseType
dumper, #initialize, loader, #name, #not_null!, #not_null?, #to_s
Methods included from Callbacks
Constructor Details
This class inherits a constructor from JSONAPIonify::Types::BaseType
Instance Method Details
#sample ⇒ Object
4 5 6 |
# File 'lib/jsonapionify/types/float_type.rb', line 4 def sample(*) rand(0.0..201.42).round(2) end |