Exception: FlexCommerceApi::Error::NotFound
- Inherits:
-
InternalServer
- Object
- StandardError
- Base
- InternalServer
- FlexCommerceApi::Error::NotFound
- Defined in:
- lib/flex_commerce_api/error/not_found.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(uri) ⇒ NotFound
constructor
A new instance of NotFound.
- #message ⇒ Object
Methods inherited from InternalServer
Constructor Details
#initialize(uri) ⇒ NotFound
Returns a new instance of NotFound.
5 6 7 |
# File 'lib/flex_commerce_api/error/not_found.rb', line 5 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
4 5 6 |
# File 'lib/flex_commerce_api/error/not_found.rb', line 4 def uri @uri end |
Instance Method Details
#message ⇒ Object
8 9 10 |
# File 'lib/flex_commerce_api/error/not_found.rb', line 8 def "Couldn't find resource at: #{uri.to_s}" end |