Sha256: e9757fd73da056865225328bac859655ea7aac6bbab2b615e57116c56901b411

Contents?: true

Size: 347 Bytes

Versions: 5

Compression:

Stored size: 347 Bytes

Contents

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

      def type
        Type.build(definition.type)
      end

      def default
        definition.default
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
service_contract-0.6.0 lib/service_contract/avro/parameter.rb
service_contract-0.5.1 lib/service_contract/avro/parameter.rb
service_contract-0.5.0 lib/service_contract/avro/parameter.rb
service_contract-0.4.1 lib/service_contract/avro/parameter.rb
service_contract-0.4.0 lib/service_contract/avro/parameter.rb