Module: Fellowshipone::Client::Fund

Included in:
Fellowshipone::Client
Defined in:
lib/fellowshipone/resources/fund.rb

Instance Method Summary collapse

Instance Method Details

#fund(id) ⇒ Object



10
11
12
# File 'lib/fellowshipone/resources/fund.rb', line 10

def fund(id)
  get("/giving/v1/fund/#{id}.json")
end

#fundsObject



5
6
7
8
# File 'lib/fellowshipone/resources/fund.rb', line 5

def funds
  response = get('/giving/v1/funds')
  Fellowshipone::Fund.format(response)
end

#subfunds(fund_id) ⇒ Object



14
15
16
17
# File 'lib/fellowshipone/resources/fund.rb', line 14

def subfunds(fund_id)
  response = get("/giving/v1/funds/#{fund_id}/subfunds")
  Fellowshipone::SubFund.format(response)
end