Module: Retryable::Version

Defined in:
lib/retryable/version.rb

Overview

This module holds the Retryable version information.

Class Method Summary collapse

Class Method Details

.majorInteger

Returns:

  • (Integer)


7
8
9
# File 'lib/retryable/version.rb', line 7

def major
  3
end

.minorInteger

Returns:

  • (Integer)


12
13
14
# File 'lib/retryable/version.rb', line 12

def minor
  0
end

.patchInteger

Returns:

  • (Integer)


17
18
19
# File 'lib/retryable/version.rb', line 17

def patch
  5
end

.to_aHash

Returns:

  • (Hash)


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

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

.to_hHash

Returns:

  • (Hash)


22
23
24
25
26
27
28
# File 'lib/retryable/version.rb', line 22

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

.to_sString

Returns:

  • (String)


36
37
38
# File 'lib/retryable/version.rb', line 36

def to_s
  to_a.join('.')
end