Class: JSONAPIonify::Types::BooleanType
- Defined in:
- lib/jsonapionify/types/boolean_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
22 23 24 |
# File 'lib/jsonapionify/types/boolean_type.rb', line 22 def sample(*) [true, false].sample end |