Module: Roar::JSON::JSONAPI
- Defined in:
- lib/roar/json/json_api.rb,
lib/roar/json/json_api/meta.rb,
lib/roar/json/json_api/options.rb,
lib/roar/json/json_api/version.rb,
lib/roar/json/json_api/defaults.rb,
lib/roar/json/json_api/document.rb,
lib/roar/json/json_api/declarative.rb,
lib/roar/json/json_api/member_name.rb,
lib/roar/json/json_api/for_collection.rb,
lib/roar/json/json_api/single_resource.rb,
lib/roar/json/json_api/resource_collection.rb more...
Defined Under Namespace
Modules: Declarative, Defaults, Document, ForCollection, Fragment, Meta, Mixin, Options, Renderer, ResourceCollection, SingleResource Classes: MemberName, Resource
Constant Summary collapse
- VERSION =
'0.0.3'.freeze
Class Method Summary collapse
-
.resource(type, options = {}) ⇒ Object
Include to define a JSON API Resource and make API methods available to your
Roar::Decorator
.
Class Method Details
permalink .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 |