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