Class: GrabzItCookie

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

Overview

This class represents the cookies stored in GrabzIt

Author:

Version:

Instance Method Summary (collapse)

Constructor Details

- (GrabzItCookie) initialize(name = '', domain = '', value = '', path = '', httpOnly = false, expires = nil, type = nil)

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.

A new instance of GrabzItCookie



6
7
8
9
10
11
12
13
14
# File 'lib/grabzitcookie.rb', line 6

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

Instance Method Details

- (String) domain

The domain of the cookie

Returns:

  • (String)

    the domain of the cookie



24
25
26
# File 'lib/grabzitcookie.rb', line 24

def domain
	@Domain
end

- (String) expires

The date and time the cookie expires

Returns:

  • (String)

    the date and time the cookie expires



36
37
38
# File 'lib/grabzitcookie.rb', line 36

def expires
	@Expires
end

- (Boolean) httpOnly

Is the cookie httponly

Returns:

  • (Boolean)

    is the cookie httponly



32
33
34
# File 'lib/grabzitcookie.rb', line 32

def httpOnly
	@HttpOnly
end

- (String) name

The name of the cookie

Returns:

  • (String)

    the name of the cookie



16
17
18
# File 'lib/grabzitcookie.rb', line 16

def name
	@Name
end

- (String) path

The path of the cookie

Returns:

  • (String)

    the path of the cookie



28
29
30
# File 'lib/grabzitcookie.rb', line 28

def path
	@Path
end

- (String) type

The type of cookie

Returns:

  • (String)

    the type of cookie



40
41
42
# File 'lib/grabzitcookie.rb', line 40

def type
	@Type
end

- (String) value

The value of the cookie

Returns:

  • (String)

    the value of the cookie



20
21
22
# File 'lib/grabzitcookie.rb', line 20

def value
	@Value
end