Class: ScalarRubyTest::Runtime::ResultResponse
- Inherits:
-
Object
- Object
- ScalarRubyTest::Runtime::ResultResponse
- Defined in:
- lib/amritk-scalar-test/runtime.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(data: nil, error: nil, status:, headers:, body:) ⇒ ResultResponse
constructor
A new instance of ResultResponse.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
98 99 100 |
# File 'lib/amritk-scalar-test/runtime.rb', line 98 def body @body end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
98 99 100 |
# File 'lib/amritk-scalar-test/runtime.rb', line 98 def data @data end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
98 99 100 |
# File 'lib/amritk-scalar-test/runtime.rb', line 98 def error @error end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
98 99 100 |
# File 'lib/amritk-scalar-test/runtime.rb', line 98 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
98 99 100 |
# File 'lib/amritk-scalar-test/runtime.rb', line 98 def status @status end |