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
2 3 4 |
# File 'lib/aua/agents/chrome.rb', line 2 def self.extend?(agent) agent.products.include?("Safari") && agent.products.include?("Chrome") end |
Instance Method Details
#name ⇒ Object
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 |
#type ⇒ Object
6 7 8 |
# File 'lib/aua/agents/chrome.rb', line 6 def type :Browser end |