Sha256: f34c3da2a047de047721adf5d666ccc1b388449bb56fb6cda2192de0f493504d
Contents?: true
Size: 589 Bytes
Versions: 20
Compression:
Stored size: 589 Bytes
Contents
require_relative "./util" require_relative "./schema_accessor" require_relative "./content" require_relative "./headers" module Swagger class Schema class Response extend SchemaAccessor def initialize(schema) @schema = schema end define_schema_accessor :description, :required def headers Headers.new(Util.try_hash(@schema, :headers) || []) end def content Content.new(Util.try_hash(@schema, :content)) end def links # TODO Util.try_hash(@schema, :links) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems