Sha256: 204d6bc63a1f8e5ab8de42a29351929ce198e9aa995c2edc536a885d304e068c

Contents?: true

Size: 558 Bytes

Versions: 5

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

module FaithTeams
  module API
    module V2
      module Resource
        # Fund resource
        class Fund < Base
          # @param args [Hash] These are ignored as no filters are available for this endpoint
          # @return [Array<Entity::Fund>]
          # @raise [Error::Request]
          def search(**args)
            data = connection.get(path: "/funds")["data"]
            return [] unless data

            data.map { |r| Entity::Fund.new(attributes: r) }
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
faithteams-api-4.2.0 lib/faithteams/api/v2/resource/fund.rb
faithteams-api-4.1.1 lib/faithteams/api/v2/resource/fund.rb
faithteams-api-4.0.1 lib/faithteams/api/v2/resource/fund.rb
faithteams-api-2.0.2 lib/faithteams/api/v2/resource/fund.rb
faithteams-api-2.0.1 lib/faithteams/api/v2/resource/fund.rb