add Book#find_account_by_full_name()

This commit is contained in:
josh committed 2013-08-11 14:29:55 -04:00
1 parent ccc28e185e
commit 8b0b639434
2 files changed
+28

No files matched your search

+4
View File
@@ -28,6 +28,10 @@ module Gnucash
@accounts.find { |a| a.id == id }
end
def find_account_by_full_name(full_name)
@accounts.find { |a| a.full_name == full_name }
end
private
def build_accounts