class Capybara::Cuprite::Cookie
Public Class Methods
new(attributes)
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 5 def initialize(attributes) @attributes = attributes end
Public Instance Methods
domain()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 17 def domain @attributes["domain"] end
expires()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 41 def expires if @attributes["expires"] > 0 Time.at(@attributes["expires"]) end end
httponly?()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 33 def httponly? @attributes["httpOnly"] end
name()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 9 def name @attributes["name"] end
path()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 21 def path @attributes["path"] end
secure?()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 29 def secure? @attributes["secure"] end
session?()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 37 def session? @attributes["session"] end
size()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 25 def size @attributes["size"] end
value()
click to toggle source
# File lib/capybara/cuprite/cookie.rb, line 13 def value @attributes["value"] end