Class: Kameleoon::Cookie

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleoon/data/cookie.rb

Overview

Cookie contains information about the cookie stored on the visitor’s device

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cookies) ⇒ Cookie

Returns a new instance of Cookie.

Parameters:

  • cookies (Hash)


9
10
11
# File 'lib/kameleoon/data/cookie.rb', line 9

def initialize(cookies)
  @cookies = cookies
end

Instance Attribute Details

#cookiesObject (readonly)

Returns the value of attribute cookies.



6
7
8
# File 'lib/kameleoon/data/cookie.rb', line 6

def cookies
  @cookies
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/kameleoon/data/cookie.rb', line 13

def to_s
  "Cookie{cookies:#{@cookies}}"
end