Sha256: 3656b3fa481e293f941a6f70fe5b2414a7e1d3326d88fe9e23d59ce9441f6b03

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

module ServiceContract
  module Avro
    class Parameter < AbstractParameter
      def name
        definition.name
      end

      def type
        definition.type.type_sym == :record ?
          definition.type.name :
          definition.type.type_sym.to_s
      end

      def default
        definition.default
      end

      def doc
        definition.respond_to?(:doc) ? definition.doc : nil
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
service_contract-0.0.6 lib/service_contract/avro/parameter.rb
service_contract-0.0.5 lib/service_contract/avro/parameter.rb