Sha256: 14988aad71ca44ea3bd87977f051e250da171a045d287c6f9f6fb7b0e86285f2
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module NovaposhtaApi module Resources class TrackingDocumentResource < Resource def track(number) response = request( 'TrackingDocument/getStatusDocuments', Documents: [ { DocumentNumber: number } ] ) NovaposhtaApi::Models::TrackingDocument.extract_single(response) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
novaposhta_api-0.2.1 | lib/novaposhta_api/resources/tracking_document_resource.rb |
novaposhta_api-0.2.0 | lib/novaposhta_api/resources/tracking_document_resource.rb |