Sha256: ef1cc4ca095a867d2fece9c8bd431f7e24b76c9998a64c8f4360473948d6a899

Contents?: true

Size: 727 Bytes

Versions: 19

Compression:

Stored size: 727 Bytes

Contents

module Webdriver
  class Cookie
    attr_reader :name

    def initialize(name, connection)
      @name = name
      @session_connection = connection
      @connection = Webdriver::PrefixConnection.new "cookie/#{@name}", connection
    end

    def delete!
      @connection.delete
      self
    end

    def domain
      __refresh["domain"]
    end

    def expiry
      __refresh["expiry"]
    end

    def http_only
      __refresh["httpOnly"]
    end

    def path
      __refresh["path"]
    end

    def same_site
      __refresh["sameSite"]
    end

    def secure
      __refresh["secure"]
    end

    def value
      __refresh["value"]
    end

    private

    def __refresh
      @connection.get
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
webdriver-0.19.0 lib/webdriver/cookie.rb
webdriver-0.18.0 lib/webdriver/cookie.rb
webdriver-0.17.0 lib/webdriver/cookie.rb
webdriver-0.16.0 lib/webdriver/cookie.rb
webdriver-0.15.0 lib/webdriver/cookie.rb
webdriver-0.14.0 lib/webdriver/cookie.rb
webdriver-0.13.0 lib/webdriver/cookie.rb
webdriver-0.12.0 lib/webdriver/cookie.rb
webdriver-0.11.1 lib/webdriver/cookie.rb
webdriver-0.11.0 lib/webdriver/cookie.rb
webdriver-0.10.0 lib/webdriver/cookie.rb
webdriver-0.9.1 lib/webdriver/cookie.rb
webdriver-0.9.0 lib/webdriver/cookie.rb
webdriver-0.8.0 lib/webdriver/cookie.rb
webdriver-0.7.0 lib/webdriver/cookie.rb
webdriver-0.6.4 lib/webdriver/cookie.rb
webdriver-0.6.3 lib/webdriver/cookie.rb
webdriver-0.6.2 lib/webdriver/cookie.rb
webdriver-0.6.0 lib/webdriver/cookie.rb