Sha256: 64ec6250898db6ee6bad452083bfbfe0369c47834c661c0cf646cd1071ffca19

Contents?: true

Size: 477 Bytes

Versions: 18

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

# A Tracker object contains all of the tracking information for a package.
class EasyPost::Tracker < EasyPost::Resource
  # Create multiple Tracker objects in bulk.
  def self.create_list(params = {}, api_key = nil)
    url = "#{self.url}/create_list"
    new_params = { 'trackers' => params }
    EasyPost.make_request(:post, url, api_key, new_params)
    true # This endpoint does not return a response so we return true here instead
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
easypost-4.12.0 lib/easypost/tracker.rb
easypost-4.11.0 lib/easypost/tracker.rb
easypost-4.10.0 lib/easypost/tracker.rb
easypost-4.9.0 lib/easypost/tracker.rb
easypost-4.8.1 lib/easypost/tracker.rb
easypost-4.8.0 lib/easypost/tracker.rb
easypost-4.7.1 lib/easypost/tracker.rb
easypost-4.7.0 lib/easypost/tracker.rb
easypost-4.6.0 lib/easypost/tracker.rb
easypost-4.5.0 lib/easypost/tracker.rb
easypost-4.4.0 lib/easypost/tracker.rb
easypost-4.3.0 lib/easypost/tracker.rb
easypost-4.2.1 lib/easypost/tracker.rb
easypost-4.2.0 lib/easypost/tracker.rb
easypost-4.1.2 lib/easypost/tracker.rb
easypost-4.1.1 lib/easypost/tracker.rb
easypost-4.1.0 lib/easypost/tracker.rb
easypost-4.0.0 lib/easypost/tracker.rb