Module: Presenters

Included in:
BaseResource
Defined in:
lib/covid19/lib/presenters/presenters.rb

Instance Method Summary collapse

Instance Method Details

#present_as_json(data) ⇒ Object



4
5
6
# File 'lib/covid19/lib/presenters/presenters.rb', line 4

def present_as_json(data)
  JSON.parse(data).to_json
end