Class: Chute::Response
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Chute::Response
- Defined in:
- lib/chute/response.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#pretty_print ⇒ Object
17 18 19 |
# File 'lib/chute/response.rb', line 17 def pretty_print puts JSON.pretty_generate self end |
#success? ⇒ Boolean
13 14 15 |
# File 'lib/chute/response.rb', line 13 def success? [200, 201].include?(response.code) end |