Module: RedirectPath
- Included in:
- Net::HTTPResponse
- Defined in:
- lib/ext/http_response.rb
Instance Method Summary collapse
Instance Method Details
#redirect? ⇒ Boolean
11 12 13 |
# File 'lib/ext/http_response.rb', line 11 def redirect? !!redirect_path end |
#redirect_path ⇒ Object
7 8 9 |
# File 'lib/ext/http_response.rb', line 7 def redirect_path @redirect_path end |
#redirect_path=(path) ⇒ Object
3 4 5 |
# File 'lib/ext/http_response.rb', line 3 def redirect_path=(path) @redirect_path = path.flatten.compact.map(&:to_s).reject(&:empty?) end |