Sha256: 6161a3aedc12449187bd633e3409ce9502c2d5a94fdbcd23260e982248f8f6c0
Contents?: true
Size: 886 Bytes
Versions: 15
Compression:
Stored size: 886 Bytes
Contents
#!/usr/bin/env ruby # encoding: utf-8 # ODBA -- ydim -- 10.01.2006 -- hwyss@ywesee.com require 'odba' require 'ydim/currency_converter' require 'ydim/debitor' require 'ydim/invoice' module ODBA module Persistable alias :save :odba_store end end module YDIM class CurrencyConverter include ODBA::Persistable ODBA_SERIALIZABLE = ['@conversions'] end class Debitor include ODBA::Persistable ODBA_SERIALIZABLE = ['@address_lines', '@emails_cc', '@hosting_items'] odba_index :email odba_index :name odba_index :unique_id end class Invoice include ODBA::Persistable class << self alias :all :odba_extent end alias :save :odba_store ODBA_SERIALIZABLE = ['@items'] odba_index :status odba_index :unique_id, :class_filter => :instance_of? end class AutoInvoice odba_index :unique_id, :class_filter => :instance_of? end end
Version data entries
15 entries across 15 versions & 1 rubygems