class Capybara::Poltergeist::Cookie

Public Class Methods

new(attributes) click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 4
def initialize(attributes)
  @attributes = attributes
end

Public Instance Methods

domain() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 16
def domain
  @attributes['domain']
end
expires() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 36
def expires
  Time.at @attributes['expiry'] if @attributes['expiry']
end
httponly?() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 28
def httponly?
  @attributes['httponly']
end
name() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 8
def name
  @attributes['name']
end
path() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 20
def path
  @attributes['path']
end
samesite() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 32
def samesite
  @attributes['samesite']
end
secure?() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 24
def secure?
  @attributes['secure']
end
value() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 12
def value
  @attributes['value']
end