Class: Processors::Processor
- Inherits:
-
Object
- Object
- Processors::Processor
- Defined in:
- lib/ynab_convert/processors/processor.rb
Overview
A processor instantiates the Documents and Transformers required to turn a Statement into a YNAB4File
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Processor
constructor
A new instance of Processor.
- #to_ynab! ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Processor
Returns a new instance of Processor.
21 22 23 24 25 26 27 28 |
# File 'lib/ynab_convert/processors/processor.rb', line 21 def initialize( = {}) @statement = [:statement] @transformers = [:transformers] @validators = [::Validators::YNAB4Row] @uid = rand(36**8).to_s(36) @ynab4_file = [:ynab4_file] register_converters([:converters] || {}) end |
Instance Method Details
#to_ynab! ⇒ Object
30 31 32 33 |
# File 'lib/ynab_convert/processors/processor.rb', line 30 def to_ynab! convert rename_temp_file end |