Class: ActiveModel::Type::DateTime

Inherits:
Value show all
Includes:
Helpers::TimeValue
Defined in:
activemodel/lib/active_model/type/date_time.rb

Overview

:nodoc:

Direct Known Subclasses

ActiveRecord::Type::DateTime

Instance Attribute Summary

Attributes inherited from Value

#limit, #precision, #scale

Instance Method Summary collapse

Methods included from Helpers::TimeValue

#apply_seconds_precision, #default_timezone, #is_utc?, #serialize, #type_cast_for_schema, #user_input_in_time_zone

Methods inherited from Value

#==, #assert_valid_value, #binary?, #cast, #changed?, #changed_in_place?, #deserialize, #hash, #initialize, #map, #serialize, #type_cast_for_schema

Constructor Details

This class inherits a constructor from ActiveModel::Type::Value

Instance Method Details

#typeObject


9
10
11
# File 'activemodel/lib/active_model/type/date_time.rb', line 9

def type
  :datetime
end