Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 745 Bytes

README.rdoc

File metadata and controls

25 lines (14 loc) · 745 Bytes

CNAB240 Santander

Installing

$ require 'cnab240santander'
$ gem install cnab240santander

Usage

You can request all the lines:

$ result = Cnab240santander.retorno(:path => '/home/yourname/file.TXT', :retorna => nil)

You can request only the header:

$ result = Cnab240santander.retorno(:path => '/home/yourname/file.TXT', :retorna => 0)

Or you can request only the data, optionally merging the T and U segments:

$ result = Cnab240santander.retorno(:path => '/home/yourname/file.TXT', :retorna => 3, :merge => true)

Thanks

Thanks to Arthur Alexandre (github.com/arthurix), whose project I used as base to this one, and to Rafael Macedo (github.com/rafaelmacedo), who helped me deploying my first gem.