Method: EasyPost::Services::Parcel#create
- Defined in:
- lib/easypost/services/parcel.rb
#create(params = {}) ⇒ Object
Create a Parcel object
7 8 9 10 11 12 |
# File 'lib/easypost/services/parcel.rb', line 7 def create(params = {}) wrapped_params = { parcel: params } response = @client.make_request(:post, 'parcels', wrapped_params) EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS) end |