Module: Aua::Agents::Chrome

Defined in:
lib/aua/agents/chrome.rb

Defined Under Namespace

Modules: Frame

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extend?(agent) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/aua/agents/chrome.rb', line 2

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

Instance Method Details

#nameObject



10
11
12
13
14
15
16
# 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

#typeObject



6
7
8
# File 'lib/aua/agents/chrome.rb', line 6

def type
  :Browser
end