Class: HaveAPI::OutputFormatters::Json

Inherits:
BaseFormatter show all
Defined in:
lib/haveapi/output_formatters/json.rb

Instance Method Summary collapse

Methods inherited from BaseFormatter

#content_type, handle, handle?

Instance Method Details

#format(response) ⇒ Object



5
6
7
# File 'lib/haveapi/output_formatters/json.rb', line 5

def format(response)
  JSON.pretty_generate(response)
end