Sha256: 1a055f8a37bb2191ed5f4f8313ffe9a8c95ec8fbdd728f9f440c6bf4d06ea0c0
Contents?: true
Size: 518 Bytes
Versions: 16
Compression:
Stored size: 518 Bytes
Contents
module SiebelDonations class Designation < Base attr_reader :number, :description, :chartfield, :staff_account_id def account_type @chartfield.present? ? 'Chartfield' : 'StaffAccount' end def balances(account_types = nil) if @account_type == 'Chartfield' raise 'Balance information is not currently available for chartfields' else Balance.find(employee_ids: @staff_account_id, staff_account_types: account_types || 'primary').first end end end end
Version data entries
16 entries across 16 versions & 1 rubygems