struct Swagger::Response
- Swagger::Response
- Struct
- Value
- Object
Defined in:
swagger/response.crConstructors
- .new(code : String, description : String, reference name : String, content_type : String? = nil)
- .new(code : String, description : String, media_type : Objects::MediaType? = nil, content_type : String? = nil)
- .new(code : String, description : String, schema : Schema, content_type : String? = nil)
Instance Method Summary
- #code : String
- #code=(code)
- #content
- #content_type : String
- #content_type=(content_type : String)
- #description : String
- #description=(description)
- #media_type : Swagger::Objects::MediaType?
- #media_type=(media_type)
Constructor Detail
def self.new(code : String, description : String, reference name : String, content_type : String? = nil)
#
def self.new(code : String, description : String, media_type : Objects::MediaType? = nil, content_type : String? = nil)
#