Sha256: 1b662e394669451fcfd94ec677a385b2078d94951b17a3db9e4852ed77176b0e

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

class Taro::Types::ObjectTypes::NoContentType < Taro::Types::ObjectType
  self.desc = 'An empty response'
  self.openapi_name = 'NoContent'

  # render takes no arguments in this case
  def self.render
    super(nil)
  end

  def coerce_input
    input_error 'NoContentType cannot be used as input type'
  end

  def coerce_response
    {}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
taro-1.4.0 lib/taro/types/object_types/no_content_type.rb
taro-1.3.0 lib/taro/types/object_types/no_content_type.rb
taro-1.2.0 lib/taro/types/object_types/no_content_type.rb