Class: PostHog::MCP::NoopAnalytics Private

Inherits:
Analytics
  • Object
show all
Defined in:
lib/posthog/mcp/analytics.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Returned when instrumentation could not be set up; every call is a no-op.

Instance Method Summary collapse

Constructor Details

#initialize ⇒ NoopAnalytics

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of NoopAnalytics.



103
104
105
# File 'lib/posthog/mcp/analytics.rb', line 103

def initialize
  super(nil)
end

Instance Method Details

#capture(_event = nil, _properties = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



107
108
109
# File 'lib/posthog/mcp/analytics.rb', line 107

def capture(_event = nil, _properties = {})
  nil
end

#flush ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



111
112
113
# File 'lib/posthog/mcp/analytics.rb', line 111

def flush
  nil
end