class EasyPost::Services::CustomsInfo
Public Instance Methods
Source
# File lib/easypost/services/customs_info.rb, line 7 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
Create a CustomsInfo
object
Source
# File lib/easypost/services/customs_info.rb, line 15 def retrieve(id) response = @client.make_request(:get, "customs_infos/#{id}") EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS) end
Retrieve a CustomsInfo
object