Module: CFONB::LineParser
- Defined in:
- lib/cfonb/line_parser.rb,
lib/cfonb/line_parser/base.rb,
lib/cfonb/line_parser/operation.rb,
lib/cfonb/line_parser/new_balance.rb,
lib/cfonb/line_parser/previous_balance.rb,
lib/cfonb/line_parser/operation_details.rb
Defined Under Namespace
Classes: Base, NewBalance, Operation, OperationDetails, PreviousBalance
Class Method Summary
collapse
Class Method Details
.for(code) ⇒ Object
13
14
15
|
# File 'lib/cfonb/line_parser.rb', line 13
def self.for(code)
@parsers[code]
end
|
.parse(input) ⇒ Object
17
18
19
|
# File 'lib/cfonb/line_parser.rb', line 17
def self.parse(input)
self.for(input.first(2)).new(input)
end
|
.register(code, klass) ⇒ Object
9
10
11
|
# File 'lib/cfonb/line_parser.rb', line 9
def self.register(code, klass)
@parsers[code] = klass
end
|