Sha256: 18f2670a8a5f4d89ea71874b6d63aaa8f8f77bed602b296a930fa3936228bb66
Contents?: true
Size: 587 Bytes
Versions: 4
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true module Avro module Builder module Types class FixedType < NamedType dsl_attribute :size def serialize(reference_state) super(reference_state, overrides: serialized_attributes) end def to_h(reference_state) super(reference_state, overrides: serialized_attributes) end def validate! super validate_required_attribute!(:size) end private def serialized_attributes { size: size } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems