Class: RestMan::Request::MakeCookieHeader
- Inherits:
-
ActiveMethod::Base
- Object
- ActiveMethod::Base
- RestMan::Request::MakeCookieHeader
- Defined in:
- lib/restman/request/make_cookie_header.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/restman/request/make_cookie_header.rb', line 5 def call return nil if request..nil? arr = request..(request.url) return nil if arr.empty? return HTTP::Cookie.(arr) end |