Class: Gruf::Interceptors::Base
- Inherits:
-
Object
- Object
- Gruf::Interceptors::Base
- Defined in:
- lib/gruf/interceptors/base.rb
Overview
Base class for interception requests
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request, error, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(request, error, options = {}) ⇒ Base
Returns a new instance of Base.
39 40 41 42 43 |
# File 'lib/gruf/interceptors/base.rb', line 39 def initialize(request, error, = {}) @request = request @error = error @options = || {} end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
29 30 31 |
# File 'lib/gruf/interceptors/base.rb', line 29 def error @error end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
32 33 34 |
# File 'lib/gruf/interceptors/base.rb', line 32 def @options end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
26 27 28 |
# File 'lib/gruf/interceptors/base.rb', line 26 def request @request end |