Sha256: f238dde5f503f847dc7494ab2e4766514db6dd05cc4b688a0b7f8078ecd11b7b
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
module FieldView class Util def self.http_status_is_more_in_list?(http_status) return http_status.to_i == 206 end def self.verify_response_with_code(message, fieldview_response, *acceptable_response_codes) if not acceptable_response_codes.include?(fieldview_response.http_status) then raise UnexpectedResponseError.new("#{message} expects #{acceptable_response_codes}", fieldview_response: fieldview_response) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fieldview-0.0.1 | lib/fieldview/util.rb |