Sha256: a81badd01e4a6076b7cb257c3a537cef2362f329f098d174b380e13d1de69177
Contents?: true
Size: 356 Bytes
Versions: 6
Compression:
Stored size: 356 Bytes
Contents
# frozen_string_literal: true require 'ur' unless Object.const_defined?(:Ur) module Ur module 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
ur-0.2.5 | lib/ur/response.rb |
ur-0.2.4 | lib/ur/response.rb |
ur-0.2.3 | lib/ur/response.rb |
ur-0.2.2 | lib/ur/response.rb |
ur-0.2.1 | lib/ur/response.rb |
ur-0.2.0 | lib/ur/response.rb |