Module: Taxjar::Version
- Defined in:
- lib/taxjar/version.rb
Class Method Summary collapse
- .major ⇒ Object
- .minor ⇒ Object
- .patch ⇒ Object
- .pre ⇒ Object
- .to_a ⇒ Object
- .to_h ⇒ Object
- .to_s ⇒ Object
Class Method Details
.major ⇒ Object
4 5 6 |
# File 'lib/taxjar/version.rb', line 4 def major 2 end |
.minor ⇒ Object
8 9 10 |
# File 'lib/taxjar/version.rb', line 8 def minor 4 end |
.patch ⇒ Object
12 13 14 |
# File 'lib/taxjar/version.rb', line 12 def patch 0 end |
.pre ⇒ Object
16 17 18 |
# File 'lib/taxjar/version.rb', line 16 def pre nil end |
.to_a ⇒ Object
29 30 31 |
# File 'lib/taxjar/version.rb', line 29 def to_a to_h.values.compact end |
.to_h ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/taxjar/version.rb', line 20 def to_h { major: major, minor: minor, patch: patch, pre: pre, } end |
.to_s ⇒ Object
33 34 35 |
# File 'lib/taxjar/version.rb', line 33 def to_s to_a.join('.') end |