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.
34 35 36 37 38 |
# File 'lib/gruf/interceptors/base.rb', line 34 def initialize(request, error, = {}) @request = request @error = error @options = || {} end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
25 26 27 |
# File 'lib/gruf/interceptors/base.rb', line 25 def error @error end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
27 28 29 |
# File 'lib/gruf/interceptors/base.rb', line 27 def @options end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
23 24 25 |
# File 'lib/gruf/interceptors/base.rb', line 23 def request @request end |