class Avromatic::Model::Types::BooleanType
Constants
- VALUE_CLASSES
Public Instance Methods
Source
# File lib/avromatic/model/types/boolean_type.rb, line 19 def coerce(input) if coercible?(input) input else raise ArgumentError.new("Could not coerce '#{input.inspect}' to #{name}") end end
Source
# File lib/avromatic/model/types/boolean_type.rb, line 31 def referenced_model_classes EMPTY_ARRAY end
Source
# File lib/avromatic/model/types/boolean_type.rb, line 27 def serialize(value, _strict) value end
Source
# File lib/avromatic/model/types/boolean_type.rb, line 11 def value_classes VALUE_CLASSES end