Sha256: cda7befd6230545984b3e71ef437f1efa2fece1fbc7c77345a4f74607d78c9ee

Contents?: true

Size: 459 Bytes

Versions: 5

Compression:

Stored size: 459 Bytes

Contents

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

        private

        def serialized_attributes
          { size: size }
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
avro-builder-0.3.2 lib/avro/builder/types/fixed_type.rb
avro-builder-0.3.1 lib/avro/builder/types/fixed_type.rb
avro-builder-0.3.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.2.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.1.0 lib/avro/builder/types/fixed_type.rb