Sha256: 1bb6a45a6d8528c721c7bdacf15ee495b459dafd4126f4abae762859b89c0415
Contents?: true
Size: 396 Bytes
Versions: 7
Compression:
Stored size: 396 Bytes
Contents
module Aua::OperatingSystems::IOS PLATFORMS = %w(iPhone iPad iPod) PATTERN = /CPU( iPhone)?( OS )?([\d\._]+)? like Mac OS X/ def self.extend?(agent) PLATFORMS.include?(agent.platform_string) && agent.os_string =~ PATTERN end def platform platform_string.to_sym end def os_name :iOS end def os_version os_string =~ PATTERN && $3 && $3.gsub(/_/, ".") end end
Version data entries
7 entries across 7 versions & 1 rubygems