Module: RockRMS::Client::Fund
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/fund.rb
Instance Method Summary collapse
- #create_fund(name:, is_tax_deductible:) ⇒ Object
- #find_fund(id) ⇒ Object
- #list_funds(options = {}) ⇒ Object
Instance Method Details
#create_fund(name:, is_tax_deductible:) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/rock_rms/resources/fund.rb', line 14 def create_fund(name:, is_tax_deductible:) = { 'Name' => name, 'IsTaxDeductible' => is_tax_deductible, } post(fund_path, ) end |
#find_fund(id) ⇒ Object
9 10 11 12 |
# File 'lib/rock_rms/resources/fund.rb', line 9 def find_fund(id) res = get(fund_path(id)) Response::Fund.format(res) end |
#list_funds(options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/rock_rms/resources/fund.rb', line 4 def list_funds( = {}) res = get(fund_path, ) Response::Fund.format(res) end |