Class: EasyPost::Services::Luma
- Defined in:
- lib/easypost/services/luma.rb
Instance Method Summary collapse
-
#get_promise(params = {}) ⇒ Object
Get service recommendations from Luma that meet the criteria of your ruleset.
Methods inherited from Service
Constructor Details
This class inherits a constructor from EasyPost::Services::Service
Instance Method Details
#get_promise(params = {}) ⇒ Object
Get service recommendations from Luma that meet the criteria of your ruleset.
5 6 7 8 9 10 11 |
# File 'lib/easypost/services/luma.rb', line 5 def get_promise(params = {}) url = 'luma/promise' wrapped_params = { shipment: params } response = @client.make_request(:post, url, wrapped_params) EasyPost::InternalUtilities::Json.convert_json_to_object(response).luma_info end |