module Aua::Agents::EngineFallback

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua/agents/engine_fallback.rb, line 2
def self.extend?(agent)
  agent.app == "Mozilla" &&
  (agent.products.include?("AppleWebKit") ||
  agent.products.include?("Gecko"))
end

Public Instance Methods

name() click to toggle source
# File lib/aua/agents/engine_fallback.rb, line 12
def name
  @name ||= begin
    return :AppleWebKit if products.include?("AppleWebKit")
    return :Gecko if products.include?("Gecko")
    nil
  end
end
type() click to toggle source
# File lib/aua/agents/engine_fallback.rb, line 8
def type
  :Browser
end