Sha256: 16a1947c8bce69c4403a8c8e04cda19e992cecf36a2f9c24405f07a93f492ef4

Contents?: true

Size: 347 Bytes

Versions: 10

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Platform
    class BlackBerry < Base
      def match?
        ua =~ /BB10|BlackBerry/
      end

      def name
        "BlackBerry"
      end

      def id
        :blackberry
      end

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

Version data entries

10 entries across 10 versions & 1 rubygems

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