Exception: JSONAPI::Consumer::Errors::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jsonapi/consumer/errors.rb

Direct Known Subclasses

ClientError, ConnectionError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ ApiError

Returns a new instance of ApiError.



5
6
7
# File 'lib/jsonapi/consumer/errors.rb', line 5

def initialize(env)
  @env = env
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



4
5
6
# File 'lib/jsonapi/consumer/errors.rb', line 4

def env
  @env
end