class Esplanade::Response::Invalid
Public Class Methods
new(request:, status:, body:, error:)
click to toggle source
Calls superclass method
# File lib/esplanade/response/error.rb, line 56 def initialize(request:, status:, body:, error:) @method = request[:method] @path = request[:path] @raw_path = request[:raw_path] @status = status @body = body @error = error super(to_hash) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/esplanade/response/error.rb, line 67 def to_hash { request: { method: @method, path: @path, raw_path: @raw_path }, status: @status, body: @body, error: @error } end