Class: Response

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
app/models/response.rb

Instance Method Summary collapse

Instance Method Details

#body_as_stringObject



19
20
21
# File 'app/models/response.rb', line 19

def body_as_string
  body.is_a?(Hash) ? JSON.pretty_generate(body) : body.to_s
end