Class: Caligrafo::Converter::Data
- Inherits:
-
Base
- Object
- Base
- Caligrafo::Converter::Data
show all
- Defined in:
- lib/caligrafo/converter.rb
Instance Attribute Summary
Attributes inherited from Base
#alinhamento, #preenchimento
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #preencher
Instance Method Details
#string_to_value(string) ⇒ Object
66
67
68
|
# File 'lib/caligrafo/converter.rb', line 66
def string_to_value(string)
Date.strptime string, '%Y%m%d'
end
|
#tipos ⇒ Object
58
59
60
|
# File 'lib/caligrafo/converter.rb', line 58
def tipos
[Date]
end
|
#value_to_string(valor) ⇒ Object
62
63
64
|
# File 'lib/caligrafo/converter.rb', line 62
def value_to_string(valor)
valor.strftime('%Y%m%d')
end
|