Class: Azure::Storage::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/storage/version.rb

Constant Summary collapse

MAJOR =
0
MINOR =
1
UPDATE =
0
PRE =
'preview'

Class Method Summary collapse

Class Method Details

.to_sString

Returns:


27
28
29
# File 'lib/azure/storage/version.rb', line 27

def to_s
  [MAJOR, MINOR, UPDATE, PRE].compact.join('.')
end

.to_uasObject


31
32
33
# File 'lib/azure/storage/version.rb', line 31

def to_uas
  [MAJOR, MINOR, UPDATE].join('.') + (PRE.empty? ? '' : '-preview')
end