Class: Horseman::Cookie
- Inherits:
-
Object
- Object
- Horseman::Cookie
- Defined in:
- lib/horseman/cookies.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#expiration ⇒ Object
readonly
Returns the value of attribute expiration.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, attributes) ⇒ Cookie
constructor
A new instance of Cookie.
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
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
3 4 5 |
# File 'lib/horseman/cookies.rb', line 3 def domain @domain end |
#expiration ⇒ Object (readonly)
Returns the value of attribute expiration.
3 4 5 |
# File 'lib/horseman/cookies.rb', line 3 def expiration @expiration end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/horseman/cookies.rb', line 3 def path @path end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/horseman/cookies.rb', line 3 def value @value end |