Class: Assistant::AnalyticsToolBuilder
- Inherits:
-
Object
- Object
- Assistant::AnalyticsToolBuilder
- Defined in:
- app/services/assistant/analytics_tool_builder.rb
Overview
Routes to per-provider tool builders for analytics integrations.
Usage (via ChatToolBuilder):
tools = Assistant::AnalyticsToolBuilder.tools('google_analytics')
Class Method Summary collapse
Class Method Details
.tools(service_key) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'app/services/assistant/analytics_tool_builder.rb', line 11 def tools(service_key) case service_key when 'google_analytics' then Ga4ToolBuilder.tools when 'search_console' then GscToolBuilder.tools when 'google_ads' then GoogleAdsToolBuilder.tools when 'ahrefs' then AhrefsToolBuilder.tools when 'keywords_people_use' then KwpuToolBuilder.tools else [] end end |