Sha256: 4b58382eb40136348c3ddf965579b287c1c05db243215733a6cbfa8faa3f4522
Contents?: true
Size: 555 Bytes
Versions: 20
Compression:
Stored size: 555 Bytes
Contents
module Zuora class Account < ZObject def billTo @billTo ||= Contact.find(self.billToId) end def soldTo @soldTo ||= Contact.find(self.soldToId) end def subscriptions @subscriptions ||= Subscription.where(:accountid => self.id) end def invoices @invoices ||= Invoice.where(:accountid => self.id) end def payment_methods @payment_methods ||= PaymentMethod.where(:accountid => self.id) end def contacts @contacts ||= Contact.where(:accountid => self.id) end end end
Version data entries
20 entries across 20 versions & 1 rubygems