Sha256: 4b8a23d087aefba34999e368c4892403519b876ebe3bc244772c644daacfe0e1

Contents?: true

Size: 334 Bytes

Versions: 42

Compression:

Stored size: 334 Bytes

Contents

module OasParser
  class Response < Payload
    include OasParser::RawAccessor
    raw_keys :description, :content

    attr_accessor :endpoint, :code, :raw

    def initialize(endpoint, code, raw)
      @endpoint = endpoint
      @code = code
      @raw = raw
    end

    def success?
      code.match?(/^2\d\d$/)
    end
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
oas_parser_reborn-0.25.5 lib/oas_parser_reborn/response.rb
oas_parser-0.25.4 lib/oas_parser/response.rb
oas_parser-0.25.3 lib/oas_parser/response.rb
oas_parser-0.25.1 lib/oas_parser/response.rb
oas_parser-0.25.0 lib/oas_parser/response.rb
oas_parser-0.24.0 lib/oas_parser/response.rb
oas_parser-0.23.0 lib/oas_parser/response.rb
oas_parser-0.22.4 lib/oas_parser/response.rb
oas_parser-0.22.2 lib/oas_parser/response.rb
oas_parser-0.22.1 lib/oas_parser/response.rb
oas_parser-0.22.0 lib/oas_parser/response.rb
oas_parser-0.21.1 lib/oas_parser/response.rb
oas_parser-0.21.0 lib/oas_parser/response.rb
oas_parser-0.20.0 lib/oas_parser/response.rb
oas_parser-0.19.0 lib/oas_parser/response.rb
oas_parser-0.18.2 lib/oas_parser/response.rb
oas_parser-0.18.1 lib/oas_parser/response.rb
oas_parser-0.18.0 lib/oas_parser/response.rb
oas_parser-0.17.0 lib/oas_parser/response.rb
oas_parser-0.16.0 lib/oas_parser/response.rb