Exception: Shift::Api::Core::Errors::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Shift::Api::Core::Errors::ApiError
- Defined in:
- lib/shift/api/core/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(env) ⇒ ApiError
Returns a new instance of ApiError.
10 11 12 |
# File 'lib/shift/api/core/errors.rb', line 10 def initialize(env) @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
9 10 11 |
# File 'lib/shift/api/core/errors.rb', line 9 def env @env end |
Class Method Details
.from_jsonapi_client(ex) ⇒ Object
14 15 16 |
# File 'lib/shift/api/core/errors.rb', line 14 def self.from_jsonapi_client(ex) new(ex.env) end |