lib/hubspot/helpers/path.rb in hubspot-api-client-15.0.0 vs lib/hubspot/helpers/path.rb in hubspot-api-client-15.0.1

- old
+ new

@@ -8,8 +8,19 @@ end def require_with_mapping(path) require path.gsub('o_auth', 'oauth') end + + def require_with_codegen_mapping(path) + require path + .gsub('o_auth', 'oauth') + .gsub('audit_logs/', 'audit-logs/') + .gsub('blog_posts/', 'blog-posts/') + .gsub('site_search', 'site-search') + .gsub('source_code/', 'source-code/') + .gsub('url_redirects', 'url-redirects') + .gsub('visitor_identification', 'visitor-identification') + end end end end