module EasyPost::InternalUtilities::System
Public Class Methods
Source
# File lib/easypost/utilities/system.rb, line 33 def self.lib_version File.open(File.expand_path('../../VERSION', __dir__)).read.strip end
Source
# File lib/easypost/utilities/system.rb, line 21 def self.os_arch Gem::Platform.local.cpu end
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
Source
# File lib/easypost/utilities/system.rb, line 17 def self.os_version Gem::Platform.local.version end
Source
# File lib/easypost/utilities/system.rb, line 29 def self.ruby_patchlevel RUBY_PATCHLEVEL end
Source
# File lib/easypost/utilities/system.rb, line 25 def self.ruby_version RUBY_VERSION end