Module: Gnucash

Defined in:
lib/gnucash.rb,
lib/gnucash/book.rb,
lib/gnucash/value.rb,
lib/gnucash/account.rb,
lib/gnucash/support.rb,
lib/gnucash/version.rb,
lib/gnucash/customer.rb,
lib/gnucash/transaction.rb,
lib/gnucash/account_transaction.rb,
lib/gnucash/support/light_inspect.rb

Overview

Namespace module for gnucash gem functionality.

Defined Under Namespace

Modules: Support Classes: Account, AccountTransaction, Book, Customer, Transaction, Value

Constant Summary collapse

VERSION =

gem version

"1.5.0"

Class Method Summary collapse

Class Method Details

.open(fname) ⇒ Book

Open a GnuCash book from file.

The file can be either a plain-text XML file or a gzipped XML file.

Parameters:

  • fname (String)

    The file name of the GnuCash file to open. Only XML format (or gzipped XML format) GnuCash data files are recognized.

Returns:

  • (Book)

    Gnucash::Book instance.



22
23
24
# File 'lib/gnucash.rb', line 22

def self.open(fname)
  Book.new(fname)
end