class Ferrum::Cookies::Cookie
Public Class Methods
new(attributes)
click to toggle source
# File lib/ferrum/cookies.rb, line 6 def initialize(attributes) @attributes = attributes end
Public Instance Methods
domain()
click to toggle source
# File lib/ferrum/cookies.rb, line 18 def domain @attributes["domain"] end
expires()
click to toggle source
# File lib/ferrum/cookies.rb, line 46 def expires if @attributes["expires"] > 0 Time.at(@attributes["expires"]) end end
httponly?()
click to toggle source
# File lib/ferrum/cookies.rb, line 38 def httponly? @attributes["httpOnly"] end
name()
click to toggle source
# File lib/ferrum/cookies.rb, line 10 def name @attributes["name"] end
path()
click to toggle source
# File lib/ferrum/cookies.rb, line 22 def path @attributes["path"] end
samesite()
click to toggle source
# File lib/ferrum/cookies.rb, line 26 def samesite @attributes["sameSite"] end
secure?()
click to toggle source
# File lib/ferrum/cookies.rb, line 34 def secure? @attributes["secure"] end
session?()
click to toggle source
# File lib/ferrum/cookies.rb, line 42 def session? @attributes["session"] end
size()
click to toggle source
# File lib/ferrum/cookies.rb, line 30 def size @attributes["size"] end
value()
click to toggle source
# File lib/ferrum/cookies.rb, line 14 def value @attributes["value"] end