Class: Browser::Generic
- Inherits:
-
Base
- Object
- Base
- Browser::Generic
show all
- Defined in:
- lib/browser/generic.rb
Constant Summary
collapse
- NAMES =
{
"QuickTime" => "QuickTime",
"CoreMedia" => "Apple CoreMedia"
}.freeze
Instance Attribute Summary
Attributes inherited from Base
#accept_language, #ua
Instance Method Summary
collapse
Methods inherited from Base
#alipay?, #bot, #bot?, #chrome?, #compatibility_view?, #core_media?, #device, #edge?, #electron?, #facebook?, #firefox?, #ie?, #initialize, #known?, #meta, #micro_messenger?, #modern?, #msie_full_version, #msie_version, #nokia?, #opera?, #opera_mini?, #otter?, #phantom_js?, #platform, #proxy?, #quicktime?, #safari?, #safari_webapp_mode?, #to_s, #uc_browser?, #version, #webkit?, #webkit_full_version, #weibo?, #yandex?
Constructor Details
This class inherits a constructor from Browser::Base
Instance Method Details
#full_version ⇒ Object
18
19
20
21
22
|
# File 'lib/browser/generic.rb', line 18
def full_version
ua[%r[(?:QuickTime)/([\d.]+)], 1] ||
ua[%r[CoreMedia v([\d.]+)], 1] ||
"0.0"
end
|
#id ⇒ Object
10
11
12
|
# File 'lib/browser/generic.rb', line 10
def id
:generic
end
|
#match? ⇒ Boolean
24
25
26
|
# File 'lib/browser/generic.rb', line 24
def match?
true
end
|
#name ⇒ Object
14
15
16
|
# File 'lib/browser/generic.rb', line 14
def name
infer_name || "Generic Browser"
end
|