Class: MLserver::RedirectResponse
- Inherits:
-
Object
- Object
- MLserver::RedirectResponse
- Defined in:
- lib/MLserver/redirect_response.rb
Instance Method Summary collapse
-
#initialize(url, type: 302, httpver: "HTTP/1.1") ⇒ RedirectResponse
constructor
A new instance of RedirectResponse.
- #response ⇒ Object
Constructor Details
#initialize(url, type: 302, httpver: "HTTP/1.1") ⇒ RedirectResponse
Returns a new instance of RedirectResponse.
3 4 5 6 7 |
# File 'lib/MLserver/redirect_response.rb', line 3 def initialize(url, type: 302, httpver: "HTTP/1.1") @type = type.to_i @url = url.to_s @httpver = httpver end |