Class: Verokrypto::Source
- Inherits:
-
Object
- Object
- Verokrypto::Source
- Defined in:
- lib/verokrypto/source.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#fees ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/verokrypto/source.rb', line 5 def fees currencies = {} events.each do |e| currencies[e.fee.currency] ||= Money.from_amount(0, e.fee.currency) currencies[e.fee.currency] += e.fee end currencies end |