Sha256: 87cd1193216bd206b869d6a2f36a242762f85039f7c3bbe7759841d2cbd41346
Contents?: true
Size: 896 Bytes
Versions: 7
Compression:
Stored size: 896 Bytes
Contents
# frozen_string_literal: true require "hashie" module ShipEngine module Domain class Tracking def initialize @client = ShipEngine::Client.new end def tracking_information(params: {}) response = @client.get( path: ShipEngine::Constants::PATHS.v1.tracking.root, options: params ) Hashie::Mash.new(response.body) end def start_tracking_package(params: {}) response = @client.post( path: "#{ShipEngine::Constants::PATHS.v1.tracking.root}/start", options: params ) Hashie::Mash.new(response.body) end def stop_tracking_package(params: {}) response = @client.post( path: "#{ShipEngine::Constants::PATHS.v1.tracking.root}/stop", options: params ) Hashie::Mash.new(response.body) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems