Class: Id::Model::TypeCasts::Time
- Inherits:
-
Cast
- Object
- Cast
- Id::Model::TypeCasts::Time
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
70
71
72
|
# File 'lib/id/model/type_casts.rb', line 70
def self.type
::Time
end
|
Instance Method Details
#conversion ⇒ Object
74
75
76
|
# File 'lib/id/model/type_casts.rb', line 74
def conversion
::Time.parse value
end
|