class Helpers

Public Class Methods

get_ids_sorted_by_value() click to toggle source
# File lib/gnucash2bmd.rb, line 158
def Helpers.get_ids_sorted_by_value
  IDS.sort_by.reverse_each{ |k, v| v }.to_h
end
search_bank_guid(konto_bezeichung) click to toggle source
# File lib/gnucash2bmd.rb, line 151
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
end

Public Instance Methods

id_to_name(id) click to toggle source
# File lib/gnucash2bmd.rb, line 148
def id_to_name(id)
  return @@ids[ide]
end