Class: Assonnato::CookieJar

Inherits:
Object
  • Object
show all
Defined in:
lib/assonnato/cookie_jar.rb

Instance Method Summary collapse

Constructor Details

#initializeCookieJar

Returns a new instance of CookieJar.



11
12
13
# File 'lib/assonnato/cookie_jar.rb', line 11

def initialize
  @cookies = ''
end

Instance Method Details

#<<(cookie) ⇒ Object Also known as: append



23
24
25
# File 'lib/assonnato/cookie_jar.rb', line 23

def <<(cookie)
  @cookies << "; #{cookie}"
end

#getObject Also known as: to_s



19
20
21
# File 'lib/assonnato/cookie_jar.rb', line 19

def get
  @cookies
end

#set(cookie) ⇒ Object



15
16
17
# File 'lib/assonnato/cookie_jar.rb', line 15

def set(cookie)
  @cookies = cookie
end