Class: EasyPost::Tracker
- Inherits:
-
Resource
- Object
- EasyPostObject
- Resource
- EasyPost::Tracker
- Defined in:
- lib/easypost/tracker.rb
Overview
A Tracker object contains all of the tracking information for a package.
Instance Attribute Summary
Attributes inherited from EasyPostObject
#api_key, #name, #parent, #unsaved_values
Class Method Summary collapse
-
.create_list(params = {}, api_key = nil) ⇒ Object
Create multiple Tracker objects in bulk.
Methods inherited from Resource
all, class_name, create, #delete, each, #refresh, retrieve, #save, url, #url
Methods inherited from EasyPostObject
#[], #[]=, #as_json, construct_from, #deconstruct_keys, #each, #id, #id=, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from EasyPost::EasyPostObject
Class Method Details
.create_list(params = {}, api_key = nil) ⇒ Object
Create multiple Tracker objects in bulk.
6 7 8 9 10 11 |
# File 'lib/easypost/tracker.rb', line 6 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 |