Class: Structural::Model::TypeCasts::Date
- Inherits:
-
Cast
- Object
- Cast
- Structural::Model::TypeCasts::Date
show all
- Defined in:
- lib/structural/model/type_casts.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Cast
#cast, #initialize, #type
Class Method Details
.type ⇒ Object
77
78
79
|
# File 'lib/structural/model/type_casts.rb', line 77
def self.type
::Date
end
|
Instance Method Details
#conversion ⇒ Object
81
82
83
|
# File 'lib/structural/model/type_casts.rb', line 81
def conversion
::Date.parse value
end
|