Method: EasyPost::Services::EndShipper#create

Defined in:
lib/easypost/services/end_shipper.rb

#create(params = {}) ⇒ Object

Create an EndShipper object.



7
8
9
10
11
12
# File 'lib/easypost/services/end_shipper.rb', line 7

def create(params = {})
  wrapped_params = { address: params }
  response = @client.make_request(:post, 'end_shippers', wrapped_params)

  EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS)
end