Sha256: 12e37e551260d5f9cdfb1496b91beb38ca3926e0c407a4328cd0d44556fe0227
Contents?: true
Size: 490 Bytes
Versions: 10
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true module ActionTracker class Connection [:get, :post, :patch, :put, :delete].each do |type| define_method type do |path, options = {}| perform_request(type, path, options) end end private def perform_request(type, path, options) url = File.join(config.api_url, path) ActionTracker::SignedRequest.new(type, url, options).perform end def config @config ||= ActionTracker.config end end end
Version data entries
10 entries across 10 versions & 1 rubygems