Class: Akephalos::Client::Cookies::Cookie
- Inherits:
-
Object
- Object
- Akephalos::Client::Cookies::Cookie
- Defined in:
- lib/akephalos/client/cookies.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#expires ⇒ Object
readonly
Returns the value of attribute expires.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(cookie) ⇒ Cookie
constructor
A new instance of Cookie.
-
#native ⇒ HtmlUnit::Cookie
private
The native cookie object.
- #secure? ⇒ Boolean
Constructor Details
#initialize(cookie) ⇒ Cookie
Returns a new instance of Cookie.
50 51 52 53 54 55 56 57 58 |
# File 'lib/akephalos/client/cookies.rb', line 50 def initialize() @_cookie = @domain = .getDomain @expires = .getExpires @name = .getName @path = .getPath @value = .getValue @secure = .isSecure end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
47 48 49 |
# File 'lib/akephalos/client/cookies.rb', line 47 def domain @domain end |
#expires ⇒ Object (readonly)
Returns the value of attribute expires.
47 48 49 |
# File 'lib/akephalos/client/cookies.rb', line 47 def expires @expires end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
47 48 49 |
# File 'lib/akephalos/client/cookies.rb', line 47 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
47 48 49 |
# File 'lib/akephalos/client/cookies.rb', line 47 def path @path end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
47 48 49 |
# File 'lib/akephalos/client/cookies.rb', line 47 def value @value end |
Instance Method Details
#native ⇒ HtmlUnit::Cookie
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the native cookie object.
66 67 68 |
# File 'lib/akephalos/client/cookies.rb', line 66 def native @_cookie end |
#secure? ⇒ Boolean
60 61 62 |
# File 'lib/akephalos/client/cookies.rb', line 60 def secure? !!@secure end |