Class: RailsHttpLab::Execution::Response
- Inherits:
-
Struct
- Object
- Struct
- RailsHttpLab::Execution::Response
- Defined in:
- lib/rails_http_lab/execution/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#error ⇒ Object
Returns the value of attribute error.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#request ⇒ Object
Returns the value of attribute request.
-
#size_bytes ⇒ Object
Returns the value of attribute size_bytes.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
3 4 5 |
# File 'lib/rails_http_lab/execution/response.rb', line 3 def body @body end |
#duration_ms ⇒ Object
Returns the value of attribute duration_ms
3 4 5 |
# File 'lib/rails_http_lab/execution/response.rb', line 3 def duration_ms @duration_ms end |
#error ⇒ Object
Returns the value of attribute error
3 4 5 |
# File 'lib/rails_http_lab/execution/response.rb', line 3 def error @error end |
#headers ⇒ Object
Returns the value of attribute headers
3 4 5 |
# File 'lib/rails_http_lab/execution/response.rb', line 3 def headers @headers end |
#request ⇒ Object
Returns the value of attribute request
3 4 5 |
# File 'lib/rails_http_lab/execution/response.rb', line 3 def request @request end |
#size_bytes ⇒ Object
Returns the value of attribute size_bytes
3 4 5 |
# File 'lib/rails_http_lab/execution/response.rb', line 3 def size_bytes @size_bytes end |
#status ⇒ Object
Returns the value of attribute status
3 4 5 |
# File 'lib/rails_http_lab/execution/response.rb', line 3 def status @status end |
Instance Method Details
#to_h ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rails_http_lab/execution/response.rb', line 7 def to_h { status: status, headers: headers, body: body, duration_ms: duration_ms, size_bytes: size_bytes, error: error, request: request } end |