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

Version Path
chillout-0.8.9 lib/chillout/check_result.rb
chillout-0.8.5.1 lib/chillout/check_result.rb
chillout-0.8.8 lib/chillout/check_result.rb
chillout-0.8.7 lib/chillout/check_result.rb
chillout-0.8.6 lib/chillout/check_result.rb
chillout-0.8.5 lib/chillout/check_result.rb
chillout-0.8.4 lib/chillout/check_result.rb
chillout-0.8.3 lib/chillout/check_result.rb
chillout-0.8.2 lib/chillout/check_result.rb
chillout-0.8.1 lib/chillout/check_result.rb
chillout-0.8.0 lib/chillout/check_result.rb
chillout-0.6.0 lib/chillout/check_result.rb
chillout-0.5.4 lib/chillout/check_result.rb
chillout-0.5.3 lib/chillout/check_result.rb
chillout-0.5.2 lib/chillout/check_result.rb
chillout-0.5.1 lib/chillout/check_result.rb
chillout-0.5.0 lib/chillout/check_result.rb
chillout-0.4.1 lib/chillout/check_result.rb
chillout-0.4.0 lib/chillout/check_result.rb