module EasyPost::InternalUtilities::System

Public Class Methods

lib_version() click to toggle source
# File lib/easypost/utilities/system.rb, line 33
def self.lib_version
  File.open(File.expand_path('../../VERSION', __dir__)).read.strip
end
os_arch() click to toggle source
# File lib/easypost/utilities/system.rb, line 21
def self.os_arch
  Gem::Platform.local.cpu
end
os_name() click to toggle source
# File lib/easypost/utilities/system.rb, line 4
def self.os_name
  case RUBY_PLATFORM
  when /linux/i
    'Linux'
  when /darwin/i
    'Darwin'
  when /cygwin|mswin|mingw|bccwin|wince|emx/i
    'Windows'
  else
    'Unknown'
  end
end
os_version() click to toggle source
# File lib/easypost/utilities/system.rb, line 17
def self.os_version
  Gem::Platform.local.version
end
ruby_patchlevel() click to toggle source
# File lib/easypost/utilities/system.rb, line 29
def self.ruby_patchlevel
  RUBY_PATCHLEVEL
end
ruby_version() click to toggle source
# File lib/easypost/utilities/system.rb, line 25
def self.ruby_version
  RUBY_VERSION
end