Class: Id::Model::TypeCasts::Date
- Inherits:
-
Cast
- Object
- Cast
- Id::Model::TypeCasts::Date
show all
- Defined in:
- lib/id/model/type_casts.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Cast
#cast, #initialize, #type
Class Method Details
.type ⇒ Object
57
58
59
|
# File 'lib/id/model/type_casts.rb', line 57
def self.type
::Date
end
|
Instance Method Details
#conversion ⇒ Object
61
62
63
|
# File 'lib/id/model/type_casts.rb', line 61
def conversion
::Date.parse value
end
|