Module: JSONAPI

Defined in:
lib/jsonapi/renderer.rb,
lib/jsonapi/include_directive.rb,
lib/jsonapi/renderer/document.rb,
lib/jsonapi/include_directive/parser.rb,
lib/jsonapi/renderer/resources_processor.rb

Defined Under Namespace

Modules: Renderer Classes: IncludeDirective

Class Method Summary collapse

Class Method Details

.render(params) ⇒ Object

Render a JSON API document.


22
23
24
# File 'lib/jsonapi/renderer.rb', line 22

def render(params)
  Renderer::Document.new(params).to_hash
end