Class: FaaStRuby::RPC::TestHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/faastruby-rpc/test_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTestHelper

Returns a new instance of TestHelper.



6
7
8
9
10
11
# File 'lib/faastruby-rpc/test_helper.rb', line 6

def initialize
  @body = nil
  @code = 200
  @headers = {}
  @klass = nil
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/faastruby-rpc/test_helper.rb', line 5

def body
  @body
end

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/faastruby-rpc/test_helper.rb', line 5

def code
  @code
end

#headersObject

Returns the value of attribute headers.



5
6
7
# File 'lib/faastruby-rpc/test_helper.rb', line 5

def headers
  @headers
end

#klassObject

Returns the value of attribute klass.



5
6
7
# File 'lib/faastruby-rpc/test_helper.rb', line 5

def klass
  @klass
end