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

Version Path
rock_rms-9.10.0 lib/rock_rms/resources/fund.rb
rock_rms-9.9.0 lib/rock_rms/resources/fund.rb
rock_rms-9.8.0 lib/rock_rms/resources/fund.rb
rock_rms-9.7.0 lib/rock_rms/resources/fund.rb
rock_rms-9.6.0 lib/rock_rms/resources/fund.rb
rock_rms-9.5.0 lib/rock_rms/resources/fund.rb
rock_rms-9.4.0 lib/rock_rms/resources/fund.rb
rock_rms-9.3.0 lib/rock_rms/resources/fund.rb
rock_rms-9.2.0 lib/rock_rms/resources/fund.rb
rock_rms-9.1.0 lib/rock_rms/resources/fund.rb
rock_rms-9.0.0 lib/rock_rms/resources/fund.rb
rock_rms-8.23.0 lib/rock_rms/resources/fund.rb
rock_rms-8.22.0 lib/rock_rms/resources/fund.rb
rock_rms-8.21.0 lib/rock_rms/resources/fund.rb
rock_rms-8.20.0 lib/rock_rms/resources/fund.rb
rock_rms-8.19.0 lib/rock_rms/resources/fund.rb