Class: Net::HTTPResponse
- Inherits:
-
Object
- Object
- Net::HTTPResponse
- Defined in:
- lib/dropcam/base.rb
Instance Method Summary collapse
Instance Method Details
#error? ⇒ Boolean
13 14 15 |
# File 'lib/dropcam/base.rb', line 13 def error? self.code.to_i == 400 end |
#not_authorized? ⇒ Boolean
16 17 18 |
# File 'lib/dropcam/base.rb', line 16 def self.code.to_i == 403 end |
#not_found? ⇒ Boolean
10 11 12 |
# File 'lib/dropcam/base.rb', line 10 def not_found? self.code.to_i == 404 end |
#success? ⇒ Boolean
7 8 9 |
# File 'lib/dropcam/base.rb', line 7 def success? self.code.to_i == 200 end |