Module: Rentvine::Client::Accounts

Included in:
Rentvine::Client
Defined in:
lib/rentvine/client/accounts.rb

Instance Method Summary collapse

Instance Method Details

#accounts(args = {}) ⇒ Object Also known as: list_accounts



4
5
6
7
8
9
# File 'lib/rentvine/client/accounts.rb', line 4

def accounts(args = {})
  results = process_request(:get, 'accounting/accounts', params: args)
  return results if results.is_a?(RentvineError)

  results.map { |result| Rentvine::Account.new(result[:account]) }
end