Method: Roar::JSON::JSONAPI.resource
- Defined in:
- lib/roar/json/json_api.rb
.resource(type, options = {}) ⇒ Object
Include to define a JSON API Resource and make API methods available to
your Roar::Decorator.
70 71 72 |
# File 'lib/roar/json/json_api.rb', line 70 def self.resource(type, = {}) Resource.new(type, ) end |