class Capybara::Poltergeist::Cookie
Public Class Methods
new(attributes)
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 5 def initialize(attributes) @attributes = attributes end
Public Instance Methods
domain()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 17 def domain @attributes['domain'] end
expires()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 37 def expires Time.at @attributes['expiry'] if @attributes['expiry'] end
httponly?()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 29 def httponly? @attributes['httponly'] end
name()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 9 def name @attributes['name'] end
path()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 21 def path @attributes['path'] end
samesite()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 33 def samesite @attributes['samesite'] end
secure?()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 25 def secure? @attributes['secure'] end
value()
click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 13 def value @attributes['value'] end