Class: HTTParty::Response

Inherits:
BasicObject
Defined in:
lib/cloudapp/httparty.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/cloudapp/httparty.rb', line 6

def ok?
  [200, 201, 202].include?(self.code)
end