Class: JSONAPIonify::Types::FloatType

Inherits:
BaseType
  • Object
show all
Defined in:
lib/jsonapionify/types/float_type.rb

Instance Attribute Summary

Attributes inherited from BaseType

#options

Instance Method Summary collapse

Methods inherited from BaseType

dumper, #initialize, loader, #name, #not_null!, #not_null?, #to_s

Methods included from Callbacks

#run_callbacks

Constructor Details

This class inherits a constructor from JSONAPIonify::Types::BaseType

Instance Method Details

#sampleObject



4
5
6
# File 'lib/jsonapionify/types/float_type.rb', line 4

def sample(*)
  rand(0.0..201.42).round(2)
end