module OAuth2::Version
Public Instance Methods
major()
click to toggle source
The major version
@return [Integer]
# File lib/oauth2/version.rb, line 8 def major 1 end
minor()
click to toggle source
The minor version
@return [Integer]
# File lib/oauth2/version.rb, line 15 def minor 4 end
patch()
click to toggle source
The patch version
@return [Integer]
# File lib/oauth2/version.rb, line 22 def patch 0 end
pre()
click to toggle source
The pre-release version, if any
@return [Integer, NilClass]
# File lib/oauth2/version.rb, line 29 def pre nil end
to_a()
click to toggle source
The version number as an array
@return [Array]
# File lib/oauth2/version.rb, line 48 def to_a [major, minor, patch, pre].compact end
to_h()
click to toggle source
The version number as a hash
@return [Hash]
# File lib/oauth2/version.rb, line 36 def to_h { :major => major, :minor => minor, :patch => patch, :pre => pre, } end
to_s()
click to toggle source
The version number as a string
@return [String]
# File lib/oauth2/version.rb, line 55 def to_s to_a.join('.') end