Sha256: 86081bae6684402311c6fcd62c734eef63f00b23b65335143a30598c364ca0ca
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
module Avro module Builder module Types class ArrayType < Type include Avro::Builder::Types::ComplexType include Avro::Builder::Types::ConfigurableType include Avro::Builder::Types::TypeReferencer dsl_attribute :items do |items_type = nil| if items_type @items = create_builtin_or_lookup_named_type(items_type) else @items end end def serialize(referenced_state) { type: type_name, items: items.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/array_type.rb |