Sha256: 6d2fc541f383fa19395966305f97b91659d920dbe5c54420f5a8a4c00a23a6d6

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 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)
    @client.make_request(:post, 'customs_infos', MODEL_CLASS, params)
  end

  # Retrieve a CustomsInfo object
  def retrieve(id)
    @client.make_request(:get, "customs_infos/#{id}", MODEL_CLASS)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
easypost-5.0.0 lib/easypost/services/customs_info.rb