Module: Wpxf::Versioning::OSVersions

Included in:
Net::UserAgent
Defined in:
lib/wpxf/versioning/os_versions.rb

Overview

Provides functionality for generating random OS versions.

Instance Method Summary collapse

Instance Method Details

#random_nt_versionString

Returns a random NT version string.

Returns:

  • (String)

    a random NT version string.



8
9
10
# File 'lib/wpxf/versioning/os_versions.rb', line 8

def random_nt_version
  "#{rand(5..6)}.#{rand(0..1)}"
end

#random_osx_versionString

Returns a random OSX version string.

Returns:

  • (String)

    a random OSX version string.



13
14
15
# File 'lib/wpxf/versioning/os_versions.rb', line 13

def random_osx_version
  "10_#{rand(5..7)}_#{rand(0..9)}"
end