Module: FaaStRuby::RPC
- Defined in:
- lib/faastruby-rpc/version.rb,
lib/faastruby-rpc/function.rb,
lib/faastruby-rpc/test_helper.rb
Defined Under Namespace
Classes: ExecutionError, Function, Response, TestHelper
Constant Summary
collapse
- VERSION =
'0.2.4'
- @@response =
{}
Class Method Summary
collapse
Class Method Details
.response(path) ⇒ Object
14
15
16
|
# File 'lib/faastruby-rpc/test_helper.rb', line 14
def self.response(path)
@@response[path]
end
|
.stub_call(function_path, &block) ⇒ Object
5
6
7
8
9
|
# File 'lib/faastruby-rpc/test_helper.rb', line 5
def self.stub_call(function_path, &block)
helper = TestHelper.new
block.call(helper)
@@response[function_path] = FaaStRuby::RPC::Response.new(helper.body, helper.code, helper., helper.klass)
end
|
.stub_call?(path) ⇒ Boolean
10
11
12
|
# File 'lib/faastruby-rpc/test_helper.rb', line 10
def self.stub_call?(path)
@@response[path]
end
|