Class: Gritz::Compat::Gruf::ServerInterceptor

Inherits:
Object
  • Object
show all
Includes:
ErrorHelpers
Defined in:
/home/runner/work/gritz/gritz/sources/gritz-core/lib/gritz/compat/gruf.rb

Overview

Base for migrated interceptors whose #call yields to the next handler.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ErrorHelpers

#add_field_error, #fail!, #has_field_errors?, #set_debug_info

Constructor Details

#initialize(request, error, options = {}) ⇒ ServerInterceptor

Returns a new instance of ServerInterceptor.



180
181
182
183
184
# File '/home/runner/work/gritz/gritz/sources/gritz-core/lib/gritz/compat/gruf.rb', line 180

def initialize(request, error, options = {})
  @request = request
  @error = error
  @options = options
end

Instance Attribute Details

#error ⇒ Object (readonly)



178
179
180
# File '/home/runner/work/gritz/gritz/sources/gritz-core/lib/gritz/compat/gruf.rb', line 178

def error
  @error
end

#options ⇒ Object (readonly)



178
179
180
# File '/home/runner/work/gritz/gritz/sources/gritz-core/lib/gritz/compat/gruf.rb', line 178

def options
  @options
end

#request ⇒ Object (readonly)



178
179
180
# File '/home/runner/work/gritz/gritz/sources/gritz-core/lib/gritz/compat/gruf.rb', line 178

def request
  @request
end