Class: EasyPost::Services::CustomsInfo
- Defined in:
- lib/easypost/services/customs_info.rb
Constant Summary collapse
- MODEL_CLASS =
EasyPost::Models::CustomsInfo
Instance Method Summary collapse
-
#create(params) ⇒ Object
Create a CustomsInfo object.
-
#retrieve(id) ⇒ Object
Retrieve a CustomsInfo object.
Methods inherited from Service
Constructor Details
This class inherits a constructor from EasyPost::Services::Service
Instance Method Details
#create(params) ⇒ Object
Create a CustomsInfo object
7 8 9 10 11 |
# File 'lib/easypost/services/customs_info.rb', line 7 def create(params) wrapped_params = { customs_info: params } @client.make_request(:post, 'customs_infos', MODEL_CLASS, wrapped_params) end |
#retrieve(id) ⇒ Object
Retrieve a CustomsInfo object
14 15 16 |
# File 'lib/easypost/services/customs_info.rb', line 14 def retrieve(id) @client.make_request(:get, "customs_infos/#{id}", MODEL_CLASS) end |