1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00
teampoltergeist--poltergeist/lib/capybara/poltergeist/cookie.rb
luigi 5076f3d8f8 Add magic comment to freeze String literals (#907)
* Add magic comment to frozen String literals
2017-11-13 08:46:11 -08:00

41 lines
605 B
Ruby

# frozen_string_literal: true
module Capybara::Poltergeist
class Cookie
def initialize(attributes)
@attributes = attributes
end
def name
@attributes['name']
end
def value
@attributes['value']
end
def domain
@attributes['domain']
end
def path
@attributes['path']
end
def secure?
@attributes['secure']
end
def httponly?
@attributes['httponly']
end
def samesite
@attributes['samesite']
end
def expires
Time.at @attributes['expiry'] if @attributes['expiry']
end
end
end