Class: ActiveFields::Casters::DateTimeArrayCaster
- Inherits:
-
DateTimeCaster
- Object
- BaseCaster
- DateTimeCaster
- ActiveFields::Casters::DateTimeArrayCaster
- Defined in:
- lib/active_fields/casters/date_time_array_caster.rb
Constant Summary
Constants inherited from DateTimeCaster
ActiveFields::Casters::DateTimeCaster::MAX_PRECISION
Instance Attribute Summary
Attributes inherited from BaseCaster
Instance Method Summary collapse
Methods inherited from BaseCaster
Constructor Details
This class inherits a constructor from ActiveFields::Casters::BaseCaster
Instance Method Details
#deserialize(value) ⇒ Object
12 13 14 15 16 |
# File 'lib/active_fields/casters/date_time_array_caster.rb', line 12 def deserialize(value) return unless value.is_a?(Array) value.map { super(_1) } end |
#serialize(value) ⇒ Object
6 7 8 9 10 |
# File 'lib/active_fields/casters/date_time_array_caster.rb', line 6 def serialize(value) return unless value.is_a?(Array) value.map { super(_1) } end |