Class: GrpcMock::Response::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/grpc_mock/response.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Value

Returns a new instance of Value.



25
26
27
# File 'lib/grpc_mock/response.rb', line 25

def initialize(value)
  @value = value
end

Instance Method Details

#evaluate(_request = nil, _call = nil) ⇒ Object



29
30
31
# File 'lib/grpc_mock/response.rb', line 29

def evaluate(_request = nil, _call = nil)
  @value.dup
end