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.



19
20
21
22
23
24
# File 'lib/faastruby-rpc/test_helper.rb', line 19

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



18
19
20
# File 'lib/faastruby-rpc/test_helper.rb', line 18

def body
  @body
end

#codeObject

Returns the value of attribute code.



18
19
20
# File 'lib/faastruby-rpc/test_helper.rb', line 18

def code
  @code
end

#headersObject

Returns the value of attribute headers.



18
19
20
# File 'lib/faastruby-rpc/test_helper.rb', line 18

def headers
  @headers
end

#klassObject

Returns the value of attribute klass.



18
19
20
# File 'lib/faastruby-rpc/test_helper.rb', line 18

def klass
  @klass
end