Sha256: 25b42b04c4d9808b6c920576fe75891a3d5190a76d763e679422debc23c69d26
Contents?: true
Size: 546 Bytes
Versions: 6
Compression:
Stored size: 546 Bytes
Contents
require 'etapper/classes/journal_entry' module Etapper class Gift < JournalEntry etap_read_only :offsettingRef, :tributeAccountRef, :tributeAccountName, :segmentedTransactionRef, :originalAccountName, :originalAccountRef, :originalTransactionRef def self.find(query) case query when /\d+\.\d+\.\d+/ # "4310.0.2276679" g = client.getGift(query) Gift.new(g) if g when Hash a = Account.find(query[:account]) findByAccount(a) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems