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