module Aua::OperatingSystems::Windows

Constants

PATTERN
PHONE_PATTERN
VERSIONS

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua/operating_systems/windows.rb, line 3
def self.extend?(agent)
  agent.comments.first &&
  (agent.app_comments.include?("Windows") ||
  agent.comments_string =~ PATTERN)
end

Public Instance Methods

os_name() click to toggle source
# File lib/aua/operating_systems/windows.rb, line 34
def os_name
  @os_name ||= windows_phone? ? :WindowsPhone : :Windows
end
os_version() click to toggle source
# File lib/aua/operating_systems/windows.rb, line 38
def os_version
  @os_version ||= comments_string =~ PATTERN && VERSIONS[$3] || $3
end
platform() click to toggle source
# File lib/aua/operating_systems/windows.rb, line 30
def platform
  :Windows
end

Private Instance Methods

windows_phone?() click to toggle source
# File lib/aua/operating_systems/windows.rb, line 44
def windows_phone?
  !!(comments_string =~ PHONE_PATTERN)
end