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:



39
40
41
42
43
# File 'lib/gruf/interceptors/base.rb', line 39

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



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

def error
  @error
end

#optionsObject (readonly)

Returns the value of attribute options.



32
33
34
# File 'lib/gruf/interceptors/base.rb', line 32

def options
  @options
end

#requestObject (readonly)

Returns the value of attribute request.



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

def request
  @request
end