Module: Aua::Agents::Others
- Defined in:
- lib/aua/agents/others.rb
Constant Summary collapse
- KNOWN_CLIENTS =
%w(1PasswordThumbs 1PasswordThumbs1 Flint)
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extend?(agent) ⇒ Boolean
4 5 6 7 8 |
# File 'lib/aua/agents/others.rb', line 4 def self.extend?(agent) KNOWN_CLIENTS.include?(agent.app) || (agent.app == "Microsoft" && agent.products[1] == "Office") || agent.products[-1] == "Word" end |
Instance Method Details
#name ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/aua/agents/others.rb', line 14 def name @name ||= begin if app == "Microsoft" && products[1] == "Office" :MSOffice elsif products[-1] == "Word" :MSWord elsif app == "1PasswordThumbs1" :"1PasswordThumbs" else app.to_sym end end end |
#type ⇒ Object
10 11 12 |
# File 'lib/aua/agents/others.rb', line 10 def type :Others end |
#version ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/aua/agents/others.rb', line 28 def version @version ||= begin return version_of("Word") if name == :MSWord return version_of("Office") if name == :MSOffice return "1" if app == "1PasswordThumbs1" super end end |