Sha256: 2b9d15fd2ef1aaa0c44eb5f6805c3f99e92444b3dccb1499d371c5c7a4624f8e

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

module Aua::Agents::Chrome
  def self.extend?(agent)
    agent.products.include?("Safari") && agent.products.include?("Chrome") && !agent.products.include?("Edge")
  end

  def type
    :Browser
  end

  def name
    @name ||= begin
      return :Iron if products.include?("Iron")
      return :RockMelt if products.include?("RockMelt")
      :Chrome
    end
  end

  module Frame
    def self.extend?(agent)
      agent.products.include?("chromeframe")
    end

    def type
      :Browser
    end

    def name
      :Chromeframe
    end

    def version
      @version ||= version_of("chromeframe")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aua-0.2.6 lib/aua/agents/chrome.rb
aua-0.2.5 lib/aua/agents/chrome.rb
aua-0.2.4 lib/aua/agents/chrome.rb