Sha256: 7e5c729e13a69b1cf13347d9ef777d19541ba52e481ce3fd335bfb5f98fcfbd4
Contents?: true
Size: 270 Bytes
Versions: 19
Compression:
Stored size: 270 Bytes
Contents
class CheckResult def initialize(response) @response = response end def successful? @response.respond_to?(:code) && @response.code == "200" end def has_problem_with_authorization? @response.respond_to?(:code) && @response.code == "401" end end
Version data entries
19 entries across 19 versions & 1 rubygems