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
5 6 7 |
# File 'lib/taxjar/version.rb', line 5 def major 3 end |
.minor ⇒ Object
9 10 11 |
# File 'lib/taxjar/version.rb', line 9 def minor 0 end |
.patch ⇒ Object
13 14 15 |
# File 'lib/taxjar/version.rb', line 13 def patch 4 end |
.pre ⇒ Object
17 18 19 |
# File 'lib/taxjar/version.rb', line 17 def pre nil end |
.to_a ⇒ Object
30 31 32 |
# File 'lib/taxjar/version.rb', line 30 def to_a to_h.values.compact end |
.to_h ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/taxjar/version.rb', line 21 def to_h { major: major, minor: minor, patch: patch, pre: pre } end |
.to_s ⇒ Object
34 35 36 |
# File 'lib/taxjar/version.rb', line 34 def to_s to_a.join('.') end |