Sha256: 38b51c1748b0f4351bdedc9dc712a44f73960540cee39664fbfb37be28dffafb
Contents?: true
Size: 322 Bytes
Versions: 4
Compression:
Stored size: 322 Bytes
Contents
# frozen_string_literal: true module Rordash module UrlUtil class << self def safe_escape(url) Addressable::URI.escape(url).to_s end def error_from_http_status(http_status) Rack::Utils::HTTP_STATUS_CODES[http_status.to_i] || 'Invalid HTTP Status Code' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rordash-0.1.3 | lib/rordash/url_util.rb |
rordash-0.1.2 | lib/rordash/url_util.rb |
rordash-0.1.1 | lib/rordash/url_util.rb |
rordash-0.1.0 | lib/rordash/url_util.rb |