Sha256: 3989ff88e9ccc44211002af1530ac80eac3b61b967c18d0eda8a0b830d53677b

Contents?: true

Size: 247 Bytes

Versions: 3

Compression:

Stored size: 247 Bytes

Contents

module ServiceContract
  module Avro
    class ArrayType < Type
      def name
        "Array"
      end

      def subtype
        Type.build(definition.items)
      end

      def to_s
        "Array(#{subtype.to_s})"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
service_contract-0.0.7 lib/service_contract/avro/array_type.rb
service_contract-0.0.6 lib/service_contract/avro/array_type.rb
service_contract-0.0.5 lib/service_contract/avro/array_type.rb