Module: Twitter::Version
- Defined in:
- lib/twitter/version.rb
Overview
Provides version information for the Twitter gem
Class Method Summary collapse
-
.major ⇒ Integer
private
The major version number.
-
.minor ⇒ Integer
private
The minor version number.
-
.patch ⇒ Integer
private
The patch version number.
-
.pre ⇒ Integer, NilClass
private
The pre-release version identifier.
-
.to_a ⇒ Array
private
The version as an array.
-
.to_h ⇒ Hash
private
The version as a hash.
-
.to_s ⇒ String
private
The version as a string.
Class Method Details
.major ⇒ Integer
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.
The major version number
13 14 15 |
# File 'lib/twitter/version.rb', line 13 def major 8 end |
.minor ⇒ Integer
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.
The minor version number
23 24 25 |
# File 'lib/twitter/version.rb', line 23 def minor 3 end |
.patch ⇒ Integer
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.
The patch version number
33 34 35 |
# File 'lib/twitter/version.rb', line 33 def patch 0 end |
.pre ⇒ Integer, 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.
The pre-release version identifier
43 44 |
# File 'lib/twitter/version.rb', line 43 def pre end |
.to_a ⇒ Array
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.
The version as an array
62 63 64 |
# File 'lib/twitter/version.rb', line 62 def to_a [major, minor, patch] end |
.to_h ⇒ Hash
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.
The version as a hash
52 53 54 |
# File 'lib/twitter/version.rb', line 52 def to_h {major:, minor:, patch:, pre: nil} end |
.to_s ⇒ String
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.
The version as a string
72 73 74 |
# File 'lib/twitter/version.rb', line 72 def to_s to_a.join(".") end |