Sha256: f27816616367debbb827682b985e1c6180df81167eaa5a2f78424a05dcb2c130

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Platform
    class BlackBerry < Base
      def match?
        ua.match?(/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

5 entries across 5 versions & 1 rubygems

Version Path
browser-6.1.0 lib/browser/platform/blackberry.rb
browser-6.0.0 lib/browser/platform/blackberry.rb
browser-5.3.1 lib/browser/platform/blackberry.rb
browser-5.3.0 lib/browser/platform/blackberry.rb
browser-5.2.0 lib/browser/platform/blackberry.rb