mirror of
https://github.com/ditkrg/jsonapi-swagger.git
synced 2026-01-23 22:36:50 +00:00
18 lines
414 B
Ruby
18 lines
414 B
Ruby
require 'forwardable'
|
|
module Jsonapi
|
|
module Swagger
|
|
class JsonapiResource
|
|
extend Forwardable
|
|
|
|
def_delegators :@jr, :_attributes, :_relationships, :sortable_fields,
|
|
:creatable_fields, :updatable_fields, :filters, :mutable?
|
|
|
|
def initialize(jr)
|
|
@jr = jr
|
|
end
|
|
|
|
alias attributes _attributes
|
|
alias relationships _relationships
|
|
end
|
|
end
|
|
end |