Exception: Grape::Entity::Deprecated

Inherits:
StandardError
  • Object
show all
Defined in:
lib/grape_entity/deprecated.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg, spec) ⇒ Deprecated

Returns a new instance of Deprecated.



6
7
8
9
10
# File 'lib/grape_entity/deprecated.rb', line 6

def initialize(msg, spec)
  message = "DEPRECATED #{spec}: #{msg}"

  super(message)
end