Sha256: e37c91949602735f6f904a74da7d4f8af3e7780b7d13f85c74d0d6e521930edc
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
module Avro module Builder module Types class MapType < Type include Avro::Builder::Types::ComplexType include Avro::Builder::Types::ConfigurableType include Avro::Builder::Types::TypeReferencer dsl_attribute :values do |value_type = nil| if value_type @values = create_builtin_or_lookup_named_type(value_type) else @values end end def serialize(referenced_state) { type: type_name, values: values.serialize(referenced_state) } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avro-builder-0.3.2 | lib/avro/builder/types/map_type.rb |