Checking that value.is_a? String in get_lowercase_api_method.
Removed 'api-method' Hash.map from get_lowercase_api_method.
Used select instead of map to avoid nil deprecated error.