Class: Gruf::Interceptors::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gruf/interceptors/base.rb

Overview

Base class for interception requests

Direct Known Subclasses

ServerInterceptor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Base.

Parameters:



35
36
37
38
39
# File 'lib/gruf/interceptors/base.rb', line 35

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



26
27
28
# File 'lib/gruf/interceptors/base.rb', line 26

def error
  @error
end

#optionsObject (readonly)

Returns the value of attribute options.



28
29
30
# File 'lib/gruf/interceptors/base.rb', line 28

def options
  @options
end

#requestObject (readonly)

Returns the value of attribute request.



24
25
26
# File 'lib/gruf/interceptors/base.rb', line 24

def request
  @request
end