Exception: JSONAPI::Consumer::Errors::NotFound

Inherits:
ServerError show all
Defined in:
lib/jsonapi/consumer/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#env

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ NotFound

Returns a new instance of NotFound.



36
37
38
# File 'lib/jsonapi/consumer/errors.rb', line 36

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



35
36
37
# File 'lib/jsonapi/consumer/errors.rb', line 35

def uri
  @uri
end

Instance Method Details

#messageObject



39
40
41
# File 'lib/jsonapi/consumer/errors.rb', line 39

def message
  "Couldn't find resource at: #{uri.to_s}"
end