Skip to content

Commit a5df6e1

Browse files
committed
fix: luma response
1 parent 4fdd819 commit a5df6e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/easypost/services/luma.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ def get_promise(params = {})
77
wrapped_params = { shipment: params }
88
response = @client.make_request(:post, url, wrapped_params)
99

10-
EasyPost::InternalUtilities::Json.convert_json_to_object(response)
10+
EasyPost::InternalUtilities::Json.convert_json_to_object(response).luma_info
1111
end
1212
end

spec/luma_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
response = client.luma.get_promise(basic_shipment)
1515

16-
expect(response.luma_info.luma_selected_rate).not_to be_nil
16+
expect(response.luma_selected_rate).not_to be_nil
1717
end
1818
end
1919
end

0 commit comments

Comments
 (0)