module Aua::Agents::Chrome

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua/agents/chrome.rb, line 2
def self.extend?(agent)
  agent.products.include?("Safari") && agent.products.include?("Chrome")
end

Public Instance Methods

name() click to toggle source
# File lib/aua/agents/chrome.rb, line 10
def name
  @name ||= begin
    return :Iron if products.include?("Iron")
    return :RockMelt if products.include?("RockMelt")
    :Chrome
  end
end
type() click to toggle source
# File lib/aua/agents/chrome.rb, line 6
def type
  :Browser
end