Sha256: c2f471f65f0c32bcf265dc091e06bcc702830156dddda25766d7924e330b9693
Contents?: true
Size: 1.07 KB
Versions: 7
Compression:
Stored size: 1.07 KB
Contents
module Rentvine class Client module TransactionEntries def transaction_entries(args = {}) results = process_request(:get, 'accounting/transactions/entries/search', params: args) return results if results.is_a?(RentvineError) results.map { |result| Rentvine::TransactionEntry.new(result[:transaction_entry]) } results.map do |result| rvobj = Rentvine::TransactionEntry.new(result[:transaction_entry]) rvobj.ledger = Rentvine::Ledger.new(result[:ledger]) rvobj.portfolio = Rentvine::Portfolio.new(result[:portfolio]) rvobj.primary_ledger = Rentvine::Ledger.new(result[:primary_ledger]) rvobj.property = Rentvine::Property.new(result[:property]) rvobj.transaction = Rentvine::Transaction.new(result[:transaction]) rvobj.unit = Rentvine::Unit.new(result[:unit]) rvobj.meta = { appends: [:ledger, :portfolio, :primary_ledger, :property, :transaction, :unit] } rvobj end end alias list_transaction_entries transaction_entries end end end
Version data entries
7 entries across 7 versions & 1 rubygems