Class: Gritz::Compat::Gruf::ServerInterceptor
- Inherits:
-
Object
- Object
- Gritz::Compat::Gruf::ServerInterceptor
- 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
- #error ⇒ Object readonly
- #options ⇒ Object readonly
- #request ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(request, error, options = {}) ⇒ ServerInterceptor
constructor
A new instance of ServerInterceptor.
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, = {}) @request = request @error = error @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 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 |