Sha256: c30ead287c41fa821cbaee9e06cf093f761279861e9431ef085522e6afca3184

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 Bytes

Contents

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 expires
      Time.parse @attributes['expires']
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
poltergeist-1.0.3 lib/capybara/poltergeist/cookie.rb
poltergeist-1.0.2 lib/capybara/poltergeist/cookie.rb
poltergeist-1.0.1 lib/capybara/poltergeist/cookie.rb
poltergeist-1.0.0 lib/capybara/poltergeist/cookie.rb