class Browser::QQ

Public Instance Methods

full_version() click to toggle source
# File lib/browser/qq.rb, line 13
def full_version
  ua[%r{(?:Mobile MQQBrowser)/([\d.]+)}i, 1] ||
    ua[%r{(?:QQBrowserLite)/([\d.]+)}i, 1] ||
    ua[%r{(?:QQBrowser)/([\d.]+)}i, 1] ||
    ua[%r{(?:QQ)/([\d.]+)}i, 1] ||
    "0.0"
end
id() click to toggle source
# File lib/browser/qq.rb, line 5
def id
  :qq
end
match?() click to toggle source
# File lib/browser/qq.rb, line 21
def match?
  ua.match?(%r{QQ/|QQBrowser}i)
end
name() click to toggle source
# File lib/browser/qq.rb, line 9
def name
  "QQ Browser"
end