Class: ApiPack::Errors::HandleError
- Inherits:
-
Object
- Object
- ApiPack::Errors::HandleError
- Includes:
- ErrorMap
- Defined in:
- lib/api_pack/errors/handle_error.rb
Constant Summary
Constants included from ErrorMap
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(error) ⇒ HandleError
constructor
A new instance of HandleError.
Constructor Details
#initialize(error) ⇒ HandleError
Returns a new instance of HandleError.
6 7 8 |
# File 'lib/api_pack/errors/handle_error.rb', line 6 def initialize(error) @error = error end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/api_pack/errors/handle_error.rb', line 10 def call handle_error end |