Sha256: 622a6e726f2fcea4aa111fbe75db0c733bc59cd146d4de2daa454b4ae148e1cf
Contents?: true
Size: 602 Bytes
Versions: 16
Compression:
Stored size: 602 Bytes
Contents
module RockRMS class Client module Fund def list_funds(options = {}) res = get(fund_path, options) Response::Fund.format(res) end def find_fund(id) res = get(fund_path(id)) Response::Fund.format(res) end def create_fund(name:, is_tax_deductible:) options = { 'Name' => name, 'IsTaxDeductible' => is_tax_deductible, } post(fund_path, options) end private def fund_path(id = nil) id ? "FinancialAccounts/#{id}" : 'FinancialAccounts' end end end end
Version data entries
16 entries across 16 versions & 1 rubygems