Class: Ohm::Types::Time
- Defined in:
- lib/ohm/contrib/typecast.rb
Instance Method Summary collapse
Methods inherited from Primitive
#==, #initialize, #respond_to?, #to_s
Methods inherited from Base
[], delegate_to, empty, #inspect
Constructor Details
This class inherits a constructor from Ohm::Types::Primitive
Instance Method Details
#object ⇒ Object
130 131 132 |
# File 'lib/ohm/contrib/typecast.rb', line 130 def object ::Time.parse(@raw).utc end |
#type ⇒ Object
134 135 136 |
# File 'lib/ohm/contrib/typecast.rb', line 134 def type ::Time end |