Class: ScalarRubyTest::Runtime::ResultResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/amritk-scalar-test/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data: nil, error: nil, status:, headers:, body:) ⇒ ResultResponse

Returns a new instance of ResultResponse.



100
101
102
103
104
105
106
# File 'lib/amritk-scalar-test/runtime.rb', line 100

def initialize(data: nil, error: nil, status:, headers:, body:)
  @data = data
  @error = error
  @status = status
  @headers = headers
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



98
99
100
# File 'lib/amritk-scalar-test/runtime.rb', line 98

def body
  @body
end

#dataObject (readonly)

Returns the value of attribute data.



98
99
100
# File 'lib/amritk-scalar-test/runtime.rb', line 98

def data
  @data
end

#errorObject (readonly)

Returns the value of attribute error.



98
99
100
# File 'lib/amritk-scalar-test/runtime.rb', line 98

def error
  @error
end

#headersObject (readonly)

Returns the value of attribute headers.



98
99
100
# File 'lib/amritk-scalar-test/runtime.rb', line 98

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



98
99
100
# File 'lib/amritk-scalar-test/runtime.rb', line 98

def status
  @status
end