class Avro::Builder::Types::FixedType
Public Instance Methods
serialize(reference_state)
click to toggle source
Calls superclass method
# File lib/avro/builder/types/fixed_type.rb, line 10 def serialize(reference_state) super(reference_state, overrides: serialized_attributes) end
to_h(reference_state)
click to toggle source
Calls superclass method
# File lib/avro/builder/types/fixed_type.rb, line 14 def to_h(reference_state) super(reference_state, overrides: serialized_attributes) end
validate!()
click to toggle source
Calls superclass method
# File lib/avro/builder/types/fixed_type.rb, line 18 def validate! super validate_required_attribute!(:size) end
Private Instance Methods
serialized_attributes()
click to toggle source
# File lib/avro/builder/types/fixed_type.rb, line 25 def serialized_attributes { size: size, precision: precision, scale: scale } end