lib/fitting/records/tested/response.rb in fitting-3.0.2 vs lib/fitting/records/tested/response.rb in fitting-4.0.0
- old
+ new
@@ -14,13 +14,18 @@
def body
@body ||= @response.body
end
+ def content_type
+ @content_type ||= @response.content_type
+ end
+
def to_spherical
Fitting::Records::Spherical::Response.new(
status: status,
- body: body
+ body: body,
+ content_type: content_type
)
end
end
end
end