Class: TNT::Label
Overview
Label endpoint resource
Constant Summary
Constants inherited from Resource
Resource::XML_HEADER, Resource::XML_RENDER_OPTIONS
Class Method Summary collapse
-
.find(ref) ⇒ TNT::Response
Handles the shipment label fetching request.
Methods inherited from Resource
credentials, error_response?, extract_error, parse_response, to_xml
Class Method Details
.find(ref) ⇒ TNT::Response
Handles the shipment label fetching request
105 106 107 |
# File 'lib/tnt.rb', line 105 def self.find(ref) new(request(:post, uri, form: { xml_in: 'GET_LABEL:' + ref.to_s })) end |