Class: Spider::Cookie

Inherits:
Object show all
Defined in:
lib/spiderfw/controller/cookie.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ Cookie

Returns a new instance of Cookie.



6
7
8
9
10
11
12
# File 'lib/spiderfw/controller/cookie.rb', line 6

def initialize(val)
    @val = val
    @expires = nil
    @path = nil
    @domain = nil
    @secure = nil
end

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



4
5
6
# File 'lib/spiderfw/controller/cookie.rb', line 4

def domain
  @domain
end

#expiresObject

Returns the value of attribute expires.



4
5
6
# File 'lib/spiderfw/controller/cookie.rb', line 4

def expires
  @expires
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/spiderfw/controller/cookie.rb', line 4

def path
  @path
end

#secureObject

Returns the value of attribute secure.



4
5
6
# File 'lib/spiderfw/controller/cookie.rb', line 4

def secure
  @secure
end

#valObject

Returns the value of attribute val.



4
5
6
# File 'lib/spiderfw/controller/cookie.rb', line 4

def val
  @val
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/spiderfw/controller/cookie.rb', line 14

def to_s
    val
end