Sha256: a822c9614817042878f109ce688611e68146d14e082202676d907cc696dce1a9
Contents?: true
Size: 469 Bytes
Versions: 7
Compression:
Stored size: 469 Bytes
Contents
module SoberSwag module Reporting module Output ## # Output numbers of some variety. class Number < Base def call(input) input end def serialize_report(input) result = call(input) return Report::Value.new(['was not a number']) unless result.is_a?(Numeric) result end def swagger_schema [{ type: 'number' }, {}] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems