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:



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

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



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

def error
  @error
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

#requestObject (readonly)

Returns the value of attribute request.



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

def request
  @request
end