Class: Roar::JSON::JSONAPI::Resource::Representer

Inherits:
Decorator
  • Object
show all
Includes:
Hypermedia, Roar::JSON
Defined in:
lib/roar/json/json_api.rb

Overview

::link is delegated to Representer which handles the hypermedia (rendering and parsing links).

Constant Summary

Constants included from Roar::JSON

Collection, Hash

Instance Attribute Summary

Attributes included from Hypermedia

#links

Class Method Summary collapse

Methods included from Hypermedia

included

Methods included from Hypermedia::LinkConfigsMethod

#link_configs

Methods included from Roar::JSON

included

Class Method Details



63
64
65
66
67
68
# File 'lib/roar/json/json_api.rb', line 63

def self.links_definition_options
  {
    :extend       => LinkCollectionRepresenter,
    :exec_context => :decorator
  }
end