Sha256: dd2bb461c9ef1dbbb7ccdb09154afffe98bed440da174fe7806639c4f754aff1

Contents?: true

Size: 323 Bytes

Versions: 10

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Facebook < Base
    def id
      :facebook
    end

    def name
      "Facebook"
    end

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

    def match?
      ua =~ /FBAV|FBAN/
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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