Class: NSHTTPCookieWrapper
- Inherits:
-
Object
- Object
- NSHTTPCookieWrapper
- Defined in:
- lib/grope/web_resource_load_delegate.rb
Instance Attribute Summary collapse
-
#cookie ⇒ Object
readonly
Returns the value of attribute cookie.
Instance Method Summary collapse
- #domain ⇒ Object
- #expired? ⇒ Boolean
-
#initialize(cookie) ⇒ NSHTTPCookieWrapper
constructor
A new instance of NSHTTPCookieWrapper.
- #name ⇒ Object
- #path ⇒ Object
- #secure ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(cookie) ⇒ NSHTTPCookieWrapper
Returns a new instance of NSHTTPCookieWrapper.
58 59 60 |
# File 'lib/grope/web_resource_load_delegate.rb', line 58 def initialize() @cookie = end |
Instance Attribute Details
#cookie ⇒ Object (readonly)
Returns the value of attribute cookie.
56 57 58 |
# File 'lib/grope/web_resource_load_delegate.rb', line 56 def @cookie end |
Instance Method Details
#domain ⇒ Object
62 63 64 |
# File 'lib/grope/web_resource_load_delegate.rb', line 62 def domain .domain && .domain.to_s end |
#expired? ⇒ Boolean
82 83 84 |
# File 'lib/grope/web_resource_load_delegate.rb', line 82 def expired? .expiresDate && Time.at(.expiresDate.timeIntervalSince1970.to_i) end |
#name ⇒ Object
70 71 72 |
# File 'lib/grope/web_resource_load_delegate.rb', line 70 def name .name.to_s end |
#path ⇒ Object
66 67 68 |
# File 'lib/grope/web_resource_load_delegate.rb', line 66 def path .path && .path.to_s end |
#secure ⇒ Object
78 79 80 |
# File 'lib/grope/web_resource_load_delegate.rb', line 78 def secure .isSecure == true.to_ns ? true : false end |
#value ⇒ Object
74 75 76 |
# File 'lib/grope/web_resource_load_delegate.rb', line 74 def value .value end |