Module: RockRMS::Client::Fund

Included in:
RockRMS::Client
Defined in:
lib/rock_rms/resources/fund.rb

Instance Method Summary collapse

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:)
  options = {
    'Name' => name,
    'IsTaxDeductible' => is_tax_deductible,
  }

  post(fund_path, options)
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(options = {})
  res = get(fund_path, options)
  Response::Fund.format(res)
end