Class: Anchor::Inference::JSONAPI::Infer::Shell

Inherits:
Base
  • Object
show all
Defined in:
lib/anchor/inference/jsonapi/infer/shell.rb

Instance Method Summary collapse

Methods inherited from Base

infer, #initialize

Constructor Details

This class inherits a constructor from Anchor::Inference::JSONAPI::Infer::Base

Instance Method Details

#inferObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/anchor/inference/jsonapi/infer/shell.rb', line 3

def infer
  object({
    id: unknown,
    type: unknown,
    **attributes.index_with { unknown },
    **relationships.index_with { unknown },
    meta: unknown,
    links: unknown,
  })
end