Exception: Esplanade::Request::NotDocumented

Inherits:
Error
  • Object
show all
Defined in:
lib/esplanade/request/error.rb

Instance Method Summary collapse

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_hashObject



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