Sha256: 725f89bb1e3dd6f233746abb575e76d2aea74095fa0614df4b087226c4e97953

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 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.match?(/FBAV|FBAN/)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browser-6.2.0 lib/browser/facebook.rb
browser-6.1.0 lib/browser/facebook.rb
browser-6.0.0 lib/browser/facebook.rb
browser-5.3.1 lib/browser/facebook.rb
browser-5.3.0 lib/browser/facebook.rb
browser-5.2.0 lib/browser/facebook.rb