Class: BGSDependents::Death
- Inherits:
-
Base
- Object
- Common::Base
- Base
- BGSDependents::Death
- Defined in:
- app/models/bgs_dependents/death.rb
Constant Summary
Constants inherited from Base
Base::MILITARY_POST_OFFICE_TYPE_CODES
Instance Attribute Summary
Attributes inherited from Common::Base
Instance Method Summary collapse
- #format_info ⇒ Object
-
#initialize(death_info) ⇒ Death
constructor
A new instance of Death.
Methods inherited from Base
#adjust_address_lines_for!, #adjust_country_name_for!, #create_address_params, #create_person_params, #dependent_address, #format_date, #formatted_boolean, #generate_address, #relationship_type, #serialize_dependent_result
Methods inherited from Common::Base
#changed, #changed?, #changes, default_sort, filterable_attributes, max_per_page, per_page, sortable_attributes
Constructor Details
#initialize(death_info) ⇒ Death
Returns a new instance of Death.
5 6 7 |
# File 'app/models/bgs_dependents/death.rb', line 5 def initialize(death_info) @death_info = death_info end |
Instance Method Details
#format_info ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/models/bgs_dependents/death.rb', line 9 def format_info { death_date: format_date(@death_info['date']), ssn: @death_info['ssn'], birth_date: @death_info['birth_date'], vet_ind: 'N', dependent_income: formatted_boolean(@death_info['dependent_income']) }.merge(@death_info['full_name']).with_indifferent_access end |