Class: Rocknab::Layouts::CNAB240::Batch
- Inherits:
-
Struct
- Object
- Struct
- Rocknab::Layouts::CNAB240::Batch
- Defined in:
- lib/rocknab/layouts/cnab_240/batch.rb
Constant Summary collapse
- BATCH_PARAMS =
[ :bank_code, :cnpj, :branch, :account, :digit, :name, :zipcode, :state, :payment_type, :payment_reason ]
- SEGMENT_PARAMS =
[ :bank_code, :bank, :branch, :account, :digit, :name, :date, :value, :inscription_number ]
- TRAILER_PARAMS =
[ :bank_code ]
Instance Attribute Summary collapse
-
#batch_index ⇒ Object
Returns the value of attribute batch_index.
-
#is_same_bank ⇒ Object
Returns the value of attribute is_same_bank.
-
#is_savings ⇒ Object
Returns the value of attribute is_savings.
-
#is_ted ⇒ Object
Returns the value of attribute is_ted.
-
#params ⇒ Object
Returns the value of attribute params.
-
#payments ⇒ Object
Returns the value of attribute payments.
Instance Method Summary collapse
Instance Attribute Details
#batch_index ⇒ Object
Returns the value of attribute batch_index
8 9 10 |
# File 'lib/rocknab/layouts/cnab_240/batch.rb', line 8 def batch_index @batch_index end |
#is_same_bank ⇒ Object
Returns the value of attribute is_same_bank
8 9 10 |
# File 'lib/rocknab/layouts/cnab_240/batch.rb', line 8 def is_same_bank @is_same_bank end |
#is_savings ⇒ Object
Returns the value of attribute is_savings
8 9 10 |
# File 'lib/rocknab/layouts/cnab_240/batch.rb', line 8 def is_savings @is_savings end |
#is_ted ⇒ Object
Returns the value of attribute is_ted
8 9 10 |
# File 'lib/rocknab/layouts/cnab_240/batch.rb', line 8 def is_ted @is_ted end |
#params ⇒ Object
Returns the value of attribute params
8 9 10 |
# File 'lib/rocknab/layouts/cnab_240/batch.rb', line 8 def params @params end |
#payments ⇒ Object
Returns the value of attribute payments
8 9 10 |
# File 'lib/rocknab/layouts/cnab_240/batch.rb', line 8 def payments @payments end |
Instance Method Details
#build ⇒ Object
16 17 18 |
# File 'lib/rocknab/layouts/cnab_240/batch.rb', line 16 def build [ batch_header, segments, batch_trailer ] end |