Class: Well::AttributeUpdater::GenderMarkers
- Defined in:
- app/models/well/attribute_updater.rb
Overview
Update the gender markers and generate events
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #original_value, #resource
Constructor Details
This class inherits a constructor from Well::AttributeUpdater::Base
Instance Method Details
#target_value ⇒ Object
97 98 99 |
# File 'app/models/well/attribute_updater.rb', line 97 def target_value value.each_char.map { |c| c == 'U' ? 'Unknown' : c } end |
#update ⇒ Object
101 102 103 |
# File 'app/models/well/attribute_updater.rb', line 101 def update well.update_gender_markers!(target_value, resource) end |