Sha256: 1495eb34e7c0671bcd8704d4ce7145f7f7453594b680df4a906d8ea402c7d01b
Contents?: true
Size: 626 Bytes
Versions: 7
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true class EasyPost::Services::CustomsInfo < EasyPost::Services::Service MODEL_CLASS = EasyPost::Models::CustomsInfo # Create a CustomsInfo object def create(params) wrapped_params = { customs_info: params } response = @client.make_request(:post, 'customs_infos', wrapped_params) EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS) end # Retrieve a CustomsInfo object def retrieve(id) response = @client.make_request(:get, "customs_infos/#{id}") EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS) end end
Version data entries
7 entries across 7 versions & 1 rubygems