Exception: Esplanade::Request::NotDocumented
- Defined in:
- lib/esplanade/request/error.rb
Instance Method Summary collapse
-
#initialize(method:, path:, raw_path:, content_type:) ⇒ NotDocumented
constructor
A new instance of NotDocumented.
- #to_hash ⇒ Object
Constructor Details
#initialize(method:, path:, raw_path:, content_type:) ⇒ NotDocumented
Returns a new instance of NotDocumented.
8 9 10 11 12 13 14 15 |
# File 'lib/esplanade/request/error.rb', line 8 def initialize(method:, path:, raw_path:, content_type:) @method = method @path = path @raw_path = raw_path @content_type = content_type super(to_hash) end |
Instance Method Details
#to_hash ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/esplanade/request/error.rb', line 17 def to_hash { method: @method, path: @path, raw_path: @raw_path, content_type: @content_type } end |