Class: Web2Go::MockCookie

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value, domain, expires) ⇒ MockCookie

Returns a new instance of MockCookie.



10
11
12
13
14
15
# File 'lib/Web2Go/MockCookie.rb', line 10

def initialize(name,value,domain,expires)
  @name = name
  @value = value 
  @domain = domain
  @expires = expires
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



7
8
9
# File 'lib/Web2Go/MockCookie.rb', line 7

def domain
  @domain
end

#expiresObject (readonly)

Returns the value of attribute expires.



8
9
10
# File 'lib/Web2Go/MockCookie.rb', line 8

def expires
  @expires
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/Web2Go/MockCookie.rb', line 5

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/Web2Go/MockCookie.rb', line 6

def value
  @value
end