Class: Helpers
- Inherits:
-
Object
- Object
- Helpers
- Defined in:
- lib/gnucash2bmd.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.get_ids_sorted_by_value ⇒ Object
121 122 123 |
# File 'lib/gnucash2bmd.rb', line 121 def Helpers.get_ids_sorted_by_value IDS.sort_by.reverse_each{ |k, v| v }.to_h end |
.search_bank_guid(konto_bezeichung) ⇒ Object
113 114 115 116 117 118 119 120 |
# File 'lib/gnucash2bmd.rb', line 113 def self.search_bank_guid(konto_bezeichung) if value = BANK_GUIDS.key(konto_bezeichung) return value end new_id = BANK_GUIDS.size + 1 BANK_GUIDS[new_id] = konto_bezeichung new_id end |
Instance Method Details
#id_to_name(id) ⇒ Object
110 111 112 |
# File 'lib/gnucash2bmd.rb', line 110 def id_to_name(id) return @@ids[ide] end |