Sha256: 57916e0cd522a5542514b07b36fc9d31b1e45d4e8000f416ee3a50bb2ae16df8

Contents?: true

Size: 345 Bytes

Versions: 10

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

module Browser
  class BlackBerry < Base
    def id
      :blackberry
    end

    def name
      "BlackBerry"
    end

    def full_version
      ua[%r{BlackBerry[\da-z]+/([\d.]+)}, 1] ||
        ua[%r{Version/([\d.]+)}, 1] ||
        "0.0"
    end

    def match?
      ua =~ /BlackBerry|BB10/
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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