Class: Autility::Cookie
- Inherits:
-
Struct
- Object
- Struct
- Autility::Cookie
- Defined in:
- lib/autility/cookie.rb
Overview
Public: Represents a browser cookie.
Examples
= Cookie.new("JSESSIONID", "123")
.to_command
# => "--cookie \"JSESSIONID=123\""
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#to_command ⇒ Object
Public: Converts the cookie to a cURL option.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/autility/cookie.rb', line 10 def name @name end |
#value ⇒ Object
Returns the value of attribute value
10 11 12 |
# File 'lib/autility/cookie.rb', line 10 def value @value end |
Instance Method Details
#to_command ⇒ Object
Public: Converts the cookie to a cURL option.
Returns the String cURL option.
14 15 16 |
# File 'lib/autility/cookie.rb', line 14 def to_command %Q(--cookie "#{name}=#{value}") end |