Class: EasyPost::ScanForm

Inherits:
Resource show all
Defined in:
lib/easypost/scan_form.rb

Overview

A ScanForm can be created to speed up and simplify the carrier pickup process. The ScanForm is one document that can be scanned to mark all included tracking codes as “Accepted for Shipment” by the carrier.

Instance Attribute Summary

Attributes inherited from EasyPostObject

#api_key, #name, #parent, #unsaved_values

Class Method Summary collapse

Methods inherited from Resource

all, class_name, #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(params = {}, api_key = nil) ⇒ Object

Create a ScanForm.



7
8
9
10
# File 'lib/easypost/scan_form.rb', line 7

def self.create(params = {}, api_key = nil)
  response = EasyPost.make_request(:post, url, api_key, params)
  EasyPost::Util.convert_to_easypost_object(response, api_key)
end