module Aua::OperatingSystems::IOS

Constants

PATTERN
PLATFORMS

Public Class Methods

extend?(agent) click to toggle source
# File lib/aua/operating_systems/ios.rb, line 5
def self.extend?(agent)
  PLATFORMS.include?(agent.platform_string) && agent.os_string =~ PATTERN
end

Public Instance Methods

os_name() click to toggle source
# File lib/aua/operating_systems/ios.rb, line 13
def os_name
  :iOS
end
os_version() click to toggle source
# File lib/aua/operating_systems/ios.rb, line 17
def os_version
  os_string =~ PATTERN && $3 && $3.gsub(/_/, ".")
end
platform() click to toggle source
# File lib/aua/operating_systems/ios.rb, line 9
def platform
  platform_string.to_sym
end