Class: Horseman::Cookie

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, attributes) ⇒ Cookie

Returns a new instance of Cookie.



5
6
7
8
# File 'lib/horseman/cookies.rb', line 5

def initialize(value, attributes)
  @value = value
  attributes.each {|a| parse_attribute(a)}
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



3
4
5
# File 'lib/horseman/cookies.rb', line 3

def domain
  @domain
end

#expirationObject (readonly)

Returns the value of attribute expiration.



3
4
5
# File 'lib/horseman/cookies.rb', line 3

def expiration
  @expiration
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/horseman/cookies.rb', line 3

def path
  @path
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/horseman/cookies.rb', line 3

def value
  @value
end