class GrabzIt::Cookie
This class represents the cookies stored in GrabzIt
@version 3.0 @author GrabzIt
Public Class Methods
new(name = '', domain = '', value = '', path = '', httpOnly = false, expires = nil, type = nil)
click to toggle source
@!visibility private
# File lib/grabzit/cookie.rb, line 7 def initialize(name = '', domain = '', value = '', path = '', httpOnly = false, expires = nil, type = nil) @Name = name @Value = value @Domain = domain @Path = path @HttpOnly = httpOnly @Expires = expires @Type = type end
Public Instance Methods
domain()
click to toggle source
@return [String] the domain of the cookie
# File lib/grabzit/cookie.rb, line 25 def domain @Domain end
expires()
click to toggle source
@return [String] the date and time the cookie expires
# File lib/grabzit/cookie.rb, line 37 def expires @Expires end
httpOnly()
click to toggle source
@return [Boolean] is the cookie httponly
# File lib/grabzit/cookie.rb, line 33 def httpOnly @HttpOnly end
name()
click to toggle source
@return [String] the name of the cookie
# File lib/grabzit/cookie.rb, line 17 def name @Name end
path()
click to toggle source
@return [String] the path of the cookie
# File lib/grabzit/cookie.rb, line 29 def path @Path end
type()
click to toggle source
@return [String] the type of cookie
# File lib/grabzit/cookie.rb, line 41 def type @Type end
value()
click to toggle source
@return [String] the value of the cookie
# File lib/grabzit/cookie.rb, line 21 def value @Value end