Sha256: 3db8ca82e0dfdaf728e797740c35e06b0f979fcdb15d8069543cf52cd44fe1f6

Contents?: true

Size: 278 Bytes

Versions: 5

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Yandex < Base
    def id
      :yandex
    end

    def name
      "Yandex"
    end

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

    def match?
      ua.include?("YaBrowser")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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