We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9789de commit 36db307Copy full SHA for 36db307
1 file changed
lib/ruby_api_pack_cloudways/api/cw_lists.rb
@@ -33,7 +33,9 @@ def self.backup_frequency_list
33
34
# Fetch list of supported countries
35
def self.country_list
36
- validate_response(fetch_resource(ENDPOINTS[:countries]), 'countries')
+ response = fetch_resource(ENDPOINTS[:countries])
37
+ wrapped_response = { 'countries' => response } if response.is_a?(Array)
38
+ validate_response(wrapped_response || response, 'countries')
39
end
40
41
# Fetch list of monitoring durations
0 commit comments