class Capybara::Poltergeist::Cookie

Public Class Methods

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

Public Instance Methods

domain() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 15
def domain
  @attributes['domain']
end
expires() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 31
def expires
  Time.at @attributes['expiry'] if @attributes['expiry']
end
httponly?() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 27
def httponly?
  @attributes['httponly']
end
name() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 7
def name
  @attributes['name']
end
path() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 19
def path
  @attributes['path']
end
secure?() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 23
def secure?
  @attributes['secure']
end
value() click to toggle source
# File lib/capybara/poltergeist/cookie.rb, line 11
def value
  @attributes['value']
end