Sha256: 2313fad21c0b70c4e713da3cd9d3b51b3a6c5a2060276939e3d6f0ab435b4303

Contents?: true

Size: 281 Bytes

Versions: 10

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

module Browser
  class PhantomJS < Base
    def id
      :phantom_js
    end

    def name
      "PhantomJS"
    end

    def full_version
      ua[%r{PhantomJS/([\d.]+)}, 1] || "0.0"
    end

    def match?
      ua =~ /PhantomJS/
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/phantom_js.rb
browser-5.0.0 lib/browser/phantom_js.rb
browser-4.2.0 lib/browser/phantom_js.rb
browser-4.1.0 lib/browser/phantom_js.rb
browser-4.0.0 lib/browser/phantom_js.rb
browser-3.0.3 lib/browser/phantom_js.rb
browser-3.0.2 lib/browser/phantom_js.rb
browser-3.0.1 lib/browser/phantom_js.rb
browser-3.0.0 lib/browser/phantom_js.rb
browser-2.7.1 lib/browser/phantom_js.rb