class Browser::SougouBrowser
Public Instance Methods
full_version()
click to toggle source
We can’t get the real version on desktop device from the ua string
# File lib/browser/sougou_browser.rb, line 14 def full_version ua[%r{(?:SogouMobileBrowser)/([\d.]+)}, 1] || "0.0" end
id()
click to toggle source
# File lib/browser/sougou_browser.rb, line 5 def id :sougou_browser end
match?()
click to toggle source
SogouMobileBrowser for mobile device SE for desktop device
# File lib/browser/sougou_browser.rb, line 20 def match? ua.match?(/SogouMobileBrowser/i) || ua.match?(/\bSE\b/) end
name()
click to toggle source
# File lib/browser/sougou_browser.rb, line 9 def name "Sougou Browser" end