module Aua::Agents::Edge

Public Class Methods

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

Public Instance Methods

major_version() click to toggle source
# File lib/aua/agents/edge.rb, line 22
def major_version
  @major_version ||= (version || "").split('.', 2)[0]
end
name() click to toggle source
# File lib/aua/agents/edge.rb, line 14
def name
  :Edge
end
type() click to toggle source
# File lib/aua/agents/edge.rb, line 10
def type
  :Browser
end
version() click to toggle source
# File lib/aua/agents/edge.rb, line 18
def version
  @version ||= version_of("Edg") || version_of("Edge") || version_of("EdgA")
end