class SoberSwag::Reporting::Output::Text

Output raw text.

Public Instance Methods

call(input) click to toggle source
# File lib/sober_swag/reporting/output/text.rb, line 7
def call(input)
  input
end
serialize_report(input) click to toggle source
# File lib/sober_swag/reporting/output/text.rb, line 11
def serialize_report(input)
  result = call(input)

  return Report::Value.new(['was not a string']) unless result.is_a?(String)

  result
end
swagger_schema() click to toggle source
# File lib/sober_swag/reporting/output/text.rb, line 19
def swagger_schema
  [{ type: 'string' }, {}]
end