Exception: Mountapi::Error::RouteNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Mountapi::Error::RouteNotFound
- Defined in:
- lib/mountapi/error/route_not_found.rb
Instance Method Summary collapse
-
#initialize(url, method) ⇒ RouteNotFound
constructor
A new instance of RouteNotFound.
- #to_json_api ⇒ Object
Constructor Details
#initialize(url, method) ⇒ RouteNotFound
Returns a new instance of RouteNotFound.
4 5 6 7 8 |
# File 'lib/mountapi/error/route_not_found.rb', line 4 def initialize(url, method) @url = url @method = method super(title) end |
Instance Method Details
#to_json_api ⇒ Object
10 11 12 13 14 15 |
# File 'lib/mountapi/error/route_not_found.rb', line 10 def to_json_api { title: title, status: 404 } end |