Class: Consently::Cookie
- Inherits:
-
Struct
- Object
- Struct
- Consently::Cookie
- Defined in:
- lib/consently/cookie.rb
Overview
One cookie a tag is known to set. A cookie policy has to name them and say how long they last, which is exactly the part everyone copies from a competitor's site and gets wrong.
days is nil for a session cookie.
Instance Attribute Summary collapse
-
#days ⇒ Object
Returns the value of attribute days.
-
#name ⇒ Object
Returns the value of attribute name.
-
#provider ⇒ Object
Returns the value of attribute provider.
Instance Method Summary collapse
Instance Attribute Details
#days ⇒ Object
Returns the value of attribute days
7 8 9 |
# File 'lib/consently/cookie.rb', line 7 def days @days end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/consently/cookie.rb', line 7 def name @name end |
#provider ⇒ Object
Returns the value of attribute provider
7 8 9 |
# File 'lib/consently/cookie.rb', line 7 def provider @provider end |
Instance Method Details
#session? ⇒ Boolean
8 9 10 |
# File 'lib/consently/cookie.rb', line 8 def session? days.nil? end |