Class: Structural::Model::TypeCasts::Time

Inherits:
Cast
  • Object
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

Constructor Details

This class inherits a constructor from Structural::Model::TypeCasts::Cast

Class Method Details

.typeObject



89
90
91
# File 'lib/structural/model/type_casts.rb', line 89

def self.type
  ::Time
end

Instance Method Details

#conversionObject



93
94
95
# File 'lib/structural/model/type_casts.rb', line 93

def conversion
  ::Time.parse value
end