class Esplanade::Request::Invalid
Public Class Methods
new(method:, path:, raw_path:, content_type:, body:, error:)
click to toggle source
Calls superclass method
# File lib/esplanade/request/error.rb, line 70 def initialize(method:, path:, raw_path:, content_type:, body:, error:) @method = method @path = path @raw_path = raw_path @content_type = content_type @body = body @error = error super(to_hash) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/esplanade/request/error.rb, line 81 def to_hash { method: @method, path: @path, raw_path: @raw_path, content_type: @content_type, body: @body, error: @error } end