module Fellowshipone::Client::Fund

Public Instance Methods

fund(id) click to toggle source
# File lib/fellowshipone/resources/fund.rb, line 10
def fund(id)
  get("/giving/v1/fund/#{id}.json")
end
funds() click to toggle source
# File lib/fellowshipone/resources/fund.rb, line 5
def funds
  response = get('/giving/v1/funds')
  Fellowshipone::Fund.format(response)
end
subfunds(fund_id) click to toggle source
# 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