Sha256: caf52e250191bb8a0a8e763e3e5941f2236c61ef9e5e09d1c798c3da8ba59a6a

Contents?: true

Size: 323 Bytes

Versions: 4

Compression:

Stored size: 323 Bytes

Contents

require 'ur' unless Object.const_defined?(:Ur)

class Ur
  class Response
    include RequestAndResponse
    include SubUr

    def success?
      (200..299).include?(status)
    end

    def client_error?
      (400..499).include?(status)
    end

    def server_error?
      (500..599).include?(status)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ur-0.1.0 lib/ur/response.rb
ur-0.0.4 lib/ur/response.rb
ur-0.0.3 lib/ur/response.rb
ur-0.0.2 lib/ur/response.rb