Sha256: f54de98259dbb0cc13a56d9ee09ccc6909b7f1457a0584cca24d5f65f8f9e191

Contents?: true

Size: 556 Bytes

Versions: 16

Compression:

Stored size: 556 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

        def validate!
          super
          validate_required_attribute!(:size)
        end

        private

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
avro-builder-0.16.1 lib/avro/builder/types/fixed_type.rb
avro-builder-0.16.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.15.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.15.0.rc0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.14.1 lib/avro/builder/types/fixed_type.rb
avro-builder-0.14.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.13.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.12.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.11.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.10.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.9.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.8.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.7.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.6.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.5.0 lib/avro/builder/types/fixed_type.rb
avro-builder-0.4.0 lib/avro/builder/types/fixed_type.rb