Class: Fitting::Records::Tested::Response
- Inherits:
-
Object
- Object
- Fitting::Records::Tested::Response
- Defined in:
- lib/fitting/records/tested/response.rb
Instance Method Summary collapse
- #body ⇒ Object
- #content_type ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #status ⇒ Object
- #to_spherical ⇒ Object
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
7 8 9 |
# File 'lib/fitting/records/tested/response.rb', line 7 def initialize(response) @response = response end |
Instance Method Details
#body ⇒ Object
15 16 17 |
# File 'lib/fitting/records/tested/response.rb', line 15 def body @body ||= @response.body end |
#content_type ⇒ Object
19 20 21 |
# File 'lib/fitting/records/tested/response.rb', line 19 def content_type @content_type ||= @response.content_type end |
#status ⇒ Object
11 12 13 |
# File 'lib/fitting/records/tested/response.rb', line 11 def status @status ||= @response.status end |