Class: FipeApi::Utils
- Inherits:
-
Object
- Object
- FipeApi::Utils
- Defined in:
- lib/fipe_api/utils.rb
Class Method Summary collapse
Class Method Details
.month_name_to_int(month_name) ⇒ Object
3 4 5 6 7 |
# File 'lib/fipe_api/utils.rb', line 3 def self.month_name_to_int(month_name) month_names = ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"] month_names.index(month_name) end |