Module: Teamsupport::Version

Defined in:
lib/teamsupport/version.rb

Class Method Summary collapse

Class Method Details

.majorInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns major version

Returns:

  • (Integer)


10
11
12
# File 'lib/teamsupport/version.rb', line 10

def major
  0
end

.minorInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns minor version

Returns:

  • (Integer)


19
20
21
# File 'lib/teamsupport/version.rb', line 19

def minor
  2
end

.patchInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns patch version

Returns:

  • (Integer)


28
29
30
# File 'lib/teamsupport/version.rb', line 28

def patch
  0
end

.preInteger, NilClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns pre version

Returns:

  • (Integer, NilClass)


37
38
39
# File 'lib/teamsupport/version.rb', line 37

def pre
  nil
end

.to_aArray

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns version as array

Returns:

  • (Array)


60
61
62
# File 'lib/teamsupport/version.rb', line 60

def to_a
  [major, minor, patch, pre].compact
end

.to_hHash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns version as hash

Returns:

  • (Hash)


46
47
48
49
50
51
52
53
# File 'lib/teamsupport/version.rb', line 46

def to_h
  {
    major: major,
    minor: minor,
    patch: patch,
    pre: pre,
  }
end

.to_sString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns version as string

Returns:

  • (String)


69
70
71
# File 'lib/teamsupport/version.rb', line 69

def to_s
  to_a.join('.')
end