Class: CiPower::Record

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#address_identification_debteeObject

Returns the value of attribute address_identification_debtee.



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

def address_identification_debtee
  @address_identification_debtee
end

#address_identification_debtorObject

Returns the value of attribute address_identification_debtor.



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

def address_identification_debtor
  @address_identification_debtor
end

#group_noObject

Returns the value of attribute group_no.



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

def group_no
  @group_no
end

#record_typeObject

Returns the value of attribute record_type.



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

def record_type
  @record_type
end

Instance Method Details

#cip_default_dataObject



8
9
10
# File 'lib/ci_power/record.rb', line 8

def cip_default_data
  _fill_up(:record_type => 2, :group_no => 7, :address_identification_debtee => 25, :address_identification_debtor => 25)
end

#fill_up(data, with_line_terminator = true) ⇒ Object



12
13
14
# File 'lib/ci_power/record.rb', line 12

def fill_up(data, with_line_terminator = true)
  _fill_up(data) + (with_line_terminator ? line_terminator : '')
end

#line_terminatorObject



16
17
18
# File 'lib/ci_power/record.rb', line 16

def line_terminator
  "\n"
end