Class: CiPower::ProcessData
- Defined in:
- lib/ci_power/process_data.rb
Instance Attribute Summary collapse
-
#case_no_decision ⇒ Object
Returns the value of attribute case_no_decision.
-
#case_no_directive ⇒ Object
Returns the value of attribute case_no_directive.
-
#cip_dossier_no ⇒ Object
Returns the value of attribute cip_dossier_no.
-
#claim_petition_date ⇒ Object
Returns the value of attribute claim_petition_date.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#continue_date ⇒ Object
Returns the value of attribute continue_date.
-
#decision_date ⇒ Object
Returns the value of attribute decision_date.
-
#delivery_date ⇒ Object
Returns the value of attribute delivery_date.
-
#directive_date ⇒ Object
Returns the value of attribute directive_date.
-
#enforcement_bureau ⇒ Object
Returns the value of attribute enforcement_bureau.
-
#enforcement_date ⇒ Object
Returns the value of attribute enforcement_date.
-
#enforcement_demand_action ⇒ Object
Returns the value of attribute enforcement_demand_action.
-
#enforcement_group ⇒ Object
Returns the value of attribute enforcement_group.
-
#enforcement_no ⇒ Object
Returns the value of attribute enforcement_no.
-
#enforcement_on ⇒ Object
Returns the value of attribute enforcement_on.
-
#execution_amount ⇒ Object
Returns the value of attribute execution_amount.
-
#execution_date ⇒ Object
Returns the value of attribute execution_date.
-
#execution_type ⇒ Object
Returns the value of attribute execution_type.
-
#gain ⇒ Object
Returns the value of attribute gain.
-
#gain_dropdown ⇒ Object
Returns the value of attribute gain_dropdown.
-
#income ⇒ Object
Returns the value of attribute income.
-
#is_continuable_after_6months ⇒ Object
Returns the value of attribute is_continuable_after_6months.
-
#is_income_variable ⇒ Object
Returns the value of attribute is_income_variable.
-
#is_real_estate ⇒ Object
Returns the value of attribute is_real_estate.
-
#is_third_party_claim ⇒ Object
Returns the value of attribute is_third_party_claim.
-
#judicial_vitiation_date ⇒ Object
Returns the value of attribute judicial_vitiation_date.
-
#legal_effect_date ⇒ Object
Returns the value of attribute legal_effect_date.
-
#living_wage ⇒ Object
Returns the value of attribute living_wage.
-
#loss ⇒ Object
Returns the value of attribute loss.
-
#opening_of_bankruptcy_date ⇒ Object
Returns the value of attribute opening_of_bankruptcy_date.
-
#opening_of_bankruptcy_process ⇒ Object
Returns the value of attribute opening_of_bankruptcy_process.
-
#opening_of_bankruptcy_process_no ⇒ Object
Returns the value of attribute opening_of_bankruptcy_process_no.
-
#processes_to_date ⇒ Object
Returns the value of attribute processes_to_date.
-
#quote ⇒ Object
Returns the value of attribute quote.
-
#real_estate ⇒ Object
Returns the value of attribute real_estate.
-
#reclamation_from_date ⇒ Object
Returns the value of attribute reclamation_from_date.
-
#reclamation_objects ⇒ Object
Returns the value of attribute reclamation_objects.
-
#reclamation_to_date ⇒ Object
Returns the value of attribute reclamation_to_date.
-
#third_party_claim ⇒ Object
Returns the value of attribute third_party_claim.
-
#unpaid_debts_amount ⇒ Object
Returns the value of attribute unpaid_debts_amount.
-
#unpaid_debts_certificate_date ⇒ Object
Returns the value of attribute unpaid_debts_certificate_date.
-
#unpaid_debts_certificate_no ⇒ Object
Returns the value of attribute unpaid_debts_certificate_no.
-
#unpaid_debts_certificate_transfer_application_date ⇒ Object
Returns the value of attribute unpaid_debts_certificate_transfer_application_date.
-
#unpaid_debts_type ⇒ Object
Returns the value of attribute unpaid_debts_type.
Attributes inherited from Record
#address_identification_debtee, #address_identification_debtor, #group_no, #record_type
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ProcessData
constructor
A new instance of ProcessData.
- #to_cip(with_line_terminator = true) ⇒ Object
Methods inherited from Record
#cip_default_data, #fill_up, #line_terminator
Constructor Details
#initialize(attributes = {}) ⇒ ProcessData
Returns a new instance of ProcessData.
48 49 50 51 52 53 54 55 |
# File 'lib/ci_power/process_data.rb', line 48 def initialize(attributes = {}) if attributes.is_a? Hash attributes.merge! :record_type => '19' attributes.each do |key, value| self.send("#{key}=".to_sym, value) if self.respond_to?("#{key}=") end end end |
Instance Attribute Details
#case_no_decision ⇒ Object
Returns the value of attribute case_no_decision.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def case_no_decision @case_no_decision end |
#case_no_directive ⇒ Object
Returns the value of attribute case_no_directive.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def case_no_directive @case_no_directive end |
#cip_dossier_no ⇒ Object
Returns the value of attribute cip_dossier_no.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def cip_dossier_no @cip_dossier_no end |
#claim_petition_date ⇒ Object
Returns the value of attribute claim_petition_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def claim_petition_date @claim_petition_date end |
#comment ⇒ Object
Returns the value of attribute comment.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def comment @comment end |
#continue_date ⇒ Object
Returns the value of attribute continue_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def continue_date @continue_date end |
#decision_date ⇒ Object
Returns the value of attribute decision_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def decision_date @decision_date end |
#delivery_date ⇒ Object
Returns the value of attribute delivery_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def delivery_date @delivery_date end |
#directive_date ⇒ Object
Returns the value of attribute directive_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def directive_date @directive_date end |
#enforcement_bureau ⇒ Object
Returns the value of attribute enforcement_bureau.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def enforcement_bureau @enforcement_bureau end |
#enforcement_date ⇒ Object
Returns the value of attribute enforcement_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def enforcement_date @enforcement_date end |
#enforcement_demand_action ⇒ Object
Returns the value of attribute enforcement_demand_action.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def enforcement_demand_action @enforcement_demand_action end |
#enforcement_group ⇒ Object
Returns the value of attribute enforcement_group.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def enforcement_group @enforcement_group end |
#enforcement_no ⇒ Object
Returns the value of attribute enforcement_no.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def enforcement_no @enforcement_no end |
#enforcement_on ⇒ Object
Returns the value of attribute enforcement_on.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def enforcement_on @enforcement_on end |
#execution_amount ⇒ Object
Returns the value of attribute execution_amount.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def execution_amount @execution_amount end |
#execution_date ⇒ Object
Returns the value of attribute execution_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def execution_date @execution_date end |
#execution_type ⇒ Object
Returns the value of attribute execution_type.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def execution_type @execution_type end |
#gain ⇒ Object
Returns the value of attribute gain.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def gain @gain end |
#gain_dropdown ⇒ Object
Returns the value of attribute gain_dropdown.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def gain_dropdown @gain_dropdown end |
#income ⇒ Object
Returns the value of attribute income.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def income @income end |
#is_continuable_after_6months ⇒ Object
Returns the value of attribute is_continuable_after_6months.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def is_continuable_after_6months @is_continuable_after_6months end |
#is_income_variable ⇒ Object
Returns the value of attribute is_income_variable.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def is_income_variable @is_income_variable end |
#is_real_estate ⇒ Object
Returns the value of attribute is_real_estate.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def is_real_estate @is_real_estate end |
#is_third_party_claim ⇒ Object
Returns the value of attribute is_third_party_claim.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def is_third_party_claim @is_third_party_claim end |
#judicial_vitiation_date ⇒ Object
Returns the value of attribute judicial_vitiation_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def judicial_vitiation_date @judicial_vitiation_date end |
#legal_effect_date ⇒ Object
Returns the value of attribute legal_effect_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def legal_effect_date @legal_effect_date end |
#living_wage ⇒ Object
Returns the value of attribute living_wage.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def living_wage @living_wage end |
#loss ⇒ Object
Returns the value of attribute loss.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def loss @loss end |
#opening_of_bankruptcy_date ⇒ Object
Returns the value of attribute opening_of_bankruptcy_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def opening_of_bankruptcy_date @opening_of_bankruptcy_date end |
#opening_of_bankruptcy_process ⇒ Object
Returns the value of attribute opening_of_bankruptcy_process.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def opening_of_bankruptcy_process @opening_of_bankruptcy_process end |
#opening_of_bankruptcy_process_no ⇒ Object
Returns the value of attribute opening_of_bankruptcy_process_no.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def opening_of_bankruptcy_process_no @opening_of_bankruptcy_process_no end |
#processes_to_date ⇒ Object
Returns the value of attribute processes_to_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def processes_to_date @processes_to_date end |
#quote ⇒ Object
Returns the value of attribute quote.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def quote @quote end |
#real_estate ⇒ Object
Returns the value of attribute real_estate.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def real_estate @real_estate end |
#reclamation_from_date ⇒ Object
Returns the value of attribute reclamation_from_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def reclamation_from_date @reclamation_from_date end |
#reclamation_objects ⇒ Object
Returns the value of attribute reclamation_objects.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def reclamation_objects @reclamation_objects end |
#reclamation_to_date ⇒ Object
Returns the value of attribute reclamation_to_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def reclamation_to_date @reclamation_to_date end |
#third_party_claim ⇒ Object
Returns the value of attribute third_party_claim.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def third_party_claim @third_party_claim end |
#unpaid_debts_amount ⇒ Object
Returns the value of attribute unpaid_debts_amount.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def unpaid_debts_amount @unpaid_debts_amount end |
#unpaid_debts_certificate_date ⇒ Object
Returns the value of attribute unpaid_debts_certificate_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def unpaid_debts_certificate_date @unpaid_debts_certificate_date end |
#unpaid_debts_certificate_no ⇒ Object
Returns the value of attribute unpaid_debts_certificate_no.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def unpaid_debts_certificate_no @unpaid_debts_certificate_no end |
#unpaid_debts_certificate_transfer_application_date ⇒ Object
Returns the value of attribute unpaid_debts_certificate_transfer_application_date.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def unpaid_debts_certificate_transfer_application_date @unpaid_debts_certificate_transfer_application_date end |
#unpaid_debts_type ⇒ Object
Returns the value of attribute unpaid_debts_type.
3 4 5 |
# File 'lib/ci_power/process_data.rb', line 3 def unpaid_debts_type @unpaid_debts_type end |
Instance Method Details
#to_cip(with_line_terminator = true) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/ci_power/process_data.rb', line 57 def to_cip(with_line_terminator = true) cip_default_data << fill_up( { :enforcement_date => 10, :enforcement_demand_action => 10, :delivery_date => 10, :continue_date => 10, :enforcement_no => 32, :enforcement_on => 32, :enforcement_bureau => 120, :comment => 120, :processes_to_date => 10, :execution_date => 10, :reclamation_from_date => 10, :reclamation_to_date => 10, :is_income_variable => 1, :is_third_party_claim => 1, :is_real_estate => 1, :execution_amount => 15, :income => 15, :quote => 15, :living_wage => 15, :execution_type => 32, :enforcement_group => 32, :third_party_claim => 64, :real_estate => 64, :reclamation_objects => 240, :unpaid_debts_certificate_date => 10, :is_continuable_after_6months => 1, :unpaid_debts_amount => 15, :gain => 15, :loss => 15, :unpaid_debts_type => 32, :gain_dropdown => 32, :unpaid_debts_certificate_no => 32, :claim_petition_date => 10, :opening_of_bankruptcy_date => 10, :opening_of_bankruptcy_process => 32, :opening_of_bankruptcy_process_no => 32, :directive_date => 10, :decision_date => 10, :judicial_vitiation_date => 10, :legal_effect_date => 10, :case_no_directive => 32, :case_no_decision => 32, :cip_dossier_no => 9, :unpaid_debts_certificate_transfer_application_date => 10 }, with_line_terminator ) end |