class ObjectFramework::HTTP::JSONPresenter
Converts independent result values into a JSON Response with status 200. Data objects are represented as JSON objects.
Public Instance Methods
Source
# File lib/object_framework/http/presentation.rb, line 10 def call(value) Response.new(status: 200, headers: { "Content-Type" => "application/json" }, body: JSON.generate(json_value(value))) end