Sha256: 3d5d776e79f92a62b0a6d2c5f97b11d1f56b8ac0ddad2771810cb92365b9b7b4
Contents?: true
Size: 664 Bytes
Versions: 20
Compression:
Stored size: 664 Bytes
Contents
require 'activefacts/api' module Tax class Name < String value_type end class Person identified_by :name one_to_one :name end class Australian < Person end class TaxPayer < Person end class TFN < Int value_type end class AustralianTaxPayer < Australian supertypes TaxPayer identified_by :tfn one_to_one :tfn, :class => TFN # Capitalisation rules! end class YearNr < Int value_type end class Year identified_by :year_nr one_to_one :year_nr end class AustralianTaxReturn identified_by :australian_tax_payer, :year has_one :australian_tax_payer has_one :year end end
Version data entries
20 entries across 20 versions & 1 rubygems