Class: GrapeSwagger::FastJsonapi::Parser

Inherits:
Jsonapi::Parser show all
Defined in:
lib/grape_jsonapi/deprecated/parser.rb

Instance Attribute Summary

Attributes inherited from Jsonapi::Parser

#endpoint, #model

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Jsonapi::Parser

#call

Constructor Details

#initialize(model, endpoint) ⇒ Parser

Returns a new instance of Parser.



6
7
8
9
10
11
12
13
14
# File 'lib/grape_jsonapi/deprecated/parser.rb', line 6

def initialize(model, endpoint)
  warn "
    WARNING: Grape::FastJsonapi::Parser is deprecated
    and will be removed on version 1.1
    Use Grape::Jsonapi::Parser instead
  "

  super(model, endpoint)
end

Class Method Details

.deprecated?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/grape_jsonapi/deprecated/parser.rb', line 16

def self.deprecated?
  true
end