class EasyPost::Services::CustomsItem
Public Instance Methods
Source
# File lib/easypost/services/customs_item.rb, line 7 def create(params) response = @client.make_request(:post, 'customs_items', params) EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS) end
Create a CustomsItem
object
Source
# File lib/easypost/services/customs_item.rb, line 14 def retrieve(id) response = @client.make_request(:get, "customs_items/#{id}") EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS) end
Retrieve a CustomsItem
object