class Sanford::ErrorContext

Attributes

handler_class[R]
request[R]
response[R]
server_data[R]

Public Class Methods

new(args) click to toggle source
# File lib/sanford/error_handler.rb, line 78
def initialize(args)
  @server_data   = args.fetch(:server_data)
  @request       = args.fetch(:request)
  @handler_class = args.fetch(:handler_class)
  @response      = args.fetch(:response)
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/sanford/error_handler.rb, line 85
def ==(other)
  if other.kind_of?(self.class)
    self.server_data   == other.server_data   &&
    self.request       == other.request       &&
    self.handler_class == other.handler_class &&
    self.response      == other.response
  else
    super
  end
end