Module: Pomodoro::Formats::Review::Plugins::Accounts

Defined in:
lib/pomodoro/formats/review/plugins/accounts.rb

Overview

# Accounts

FIO USD: 751.25
FIO CZK: 40000

TODO: Add totals: FIO USD: 751.25 FIO CZK: 40000 Total USD: 751.25 Total CZK: 40000 Overall total: xxx USD

Don't parse it, it'd be updated from the data.

Defined Under Namespace

Classes: Parser, Transformer

Class Method Summary collapse

Class Method Details

.parse(string) ⇒ Object


21
22
23
24
25
# File 'lib/pomodoro/formats/review/plugins/accounts.rb', line 21

def self.parse(string)
  tree = Parser.new.parse(string)
  nodes = Transformer.new.apply(tree)
  Expenses.new(nodes.empty? ? Array.new : nodes)
end