Class: CiPower::ProcessData

Inherits:
Record
  • Object
show all
Defined in:
lib/ci_power/process_data.rb

Instance Attribute Summary collapse

Attributes inherited from Record

#address_identification_debtee, #address_identification_debtor, #group_no, #record_type

Instance Method Summary collapse

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_decisionObject

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_directiveObject

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_noObject

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_dateObject

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

#commentObject

Returns the value of attribute comment.



3
4
5
# File 'lib/ci_power/process_data.rb', line 3

def comment
  @comment
end

#continue_dateObject

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_dateObject

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_dateObject

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_dateObject

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_bureauObject

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_dateObject

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_actionObject

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_groupObject

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_noObject

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_onObject

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_amountObject

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_dateObject

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_typeObject

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

#gainObject

Returns the value of attribute gain.



3
4
5
# File 'lib/ci_power/process_data.rb', line 3

def gain
  @gain
end

#gain_dropdownObject

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

#incomeObject

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_6monthsObject

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_variableObject

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_estateObject

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_claimObject

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_dateObject

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

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_wageObject

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

#lossObject

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_dateObject

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_processObject

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_noObject

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_dateObject

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

#quoteObject

Returns the value of attribute quote.



3
4
5
# File 'lib/ci_power/process_data.rb', line 3

def quote
  @quote
end

#real_estateObject

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_dateObject

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_objectsObject

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_dateObject

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_claimObject

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_amountObject

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_dateObject

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_noObject

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_dateObject

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_typeObject

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