Class: ActiveModel::Type::DateTime

Inherits:
Value
  • Object
show all
Includes:
Helpers::TimeValue, Helpers::Timezone
Defined in:
lib/active_model/type/date_time.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Value

#limit, #precision, #scale

Instance Method Summary collapse

Methods included from Helpers::TimeValue

#apply_seconds_precision, #serialize, #type_cast_for_schema, #user_input_in_time_zone

Methods included from Helpers::Timezone

#default_timezone, #is_utc?

Methods inherited from Value

#==, #assert_valid_value, #binary?, #cast, #changed?, #changed_in_place?, #deserialize, #force_equality?, #hash, #immutable_value, #initialize, #map, #serializable?, #serialize, #type_cast_for_schema, #value_constructed_by_mass_assignment?

Constructor Details

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

Instance Method Details

#typeObject



12
13
14
# File 'lib/active_model/type/date_time.rb', line 12

def type
  :datetime
end