Class: Hashblue::API::Request::Response
- Inherits:
-
HTTParty::Response
- Object
- HTTParty::Response
- Hashblue::API::Request::Response
- Defined in:
- lib/hashblue/api/request.rb
Instance Method Summary collapse
Instance Method Details
#json? ⇒ Boolean
36 37 38 |
# File 'lib/hashblue/api/request.rb', line 36 def json? Mime::JSON === headers["content-type"].first.split(";").first.strip end |
#success? ⇒ Boolean
32 33 34 |
# File 'lib/hashblue/api/request.rb', line 32 def success? code == 200 || code == 201 end |