Sha256: c13a708de40bf1cab44e78f0056bc3be0dd0d0a335f5f972ff1f1991b7420ebc

Contents?: true

Size: 396 Bytes

Versions: 15

Compression:

Stored size: 396 Bytes

Contents

module OasRails
  module Spec
    class Response
      include Specable
      include Hashable

      attr_accessor :code, :description, :content

      def initialize(specification)
        @specification = specification
        @description = ""
        @content = {} # Hash with {content: MediaType}
      end

      def oas_fields
        [:description, :content]
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
oas_rails-0.9.0 lib/oas_rails/spec/response.rb
oas_rails-0.8.4 lib/oas_rails/spec/response.rb
oas_rails-0.8.3 lib/oas_rails/spec/response.rb
oas_rails-0.8.2 lib/oas_rails/spec/response.rb
oas_rails-0.8.1 lib/oas_rails/spec/response.rb
oas_rails-0.8.0 lib/oas_rails/spec/response.rb
oas_rails-0.7.0 lib/oas_rails/spec/response.rb
oas_rails-0.6.0 lib/oas_rails/spec/response.rb
oas_rails-0.5.0 lib/oas_rails/spec/response.rb
oas_rails-0.4.5 lib/oas_rails/spec/response.rb
oas_rails-0.4.4 lib/oas_rails/spec/response.rb
oas_rails-0.4.3 lib/oas_rails/spec/response.rb
oas_rails-0.4.2 lib/oas_rails/spec/response.rb
oas_rails-0.4.1 lib/oas_rails/spec/response.rb
oas_rails-0.4.0 lib/oas_rails/spec/response.rb