Sha256: 03ff729800651b65d5ea86b73a09bc76e55dc327e4f740a5d1fba7c5226322a9

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

module FedgerAPI
  class Client
    # Stats
    module Stats
      # TODO
      def stats_fundings(year, query)
        stats_provider(year, query, '/fundings')
      end

      private

      def stats_provider(year, query, uri)
        Response.new(stats_request(year, query, uri))
      end

      def stats_request(year, query, uri)
        self.class.get("/stats#{uri}/#{year}", merge_options(query))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fedger_api-0.0.1 lib/fedger_api/client/stats.rb