Class: PostHog::Rails::InitConfig
- Inherits:
-
Object
- Object
- PostHog::Rails::InitConfig
- Defined in:
- lib/posthog/rails/railtie.rb
Overview
Configuration wrapper for the init block
Instance Method Summary collapse
-
#api_key=(value) ⇒ Object
Core PostHog options.
- #before_send=(value) ⇒ Object
- #feature_flag_request_timeout_seconds=(value) ⇒ Object
- #feature_flags_polling_interval=(value) ⇒ Object
- #host=(value) ⇒ Object
-
#initialize(base_options = {}) ⇒ InitConfig
constructor
A new instance of InitConfig.
- #max_queue_size=(value) ⇒ Object
- #on_error=(value) ⇒ Object
- #personal_api_key=(value) ⇒ Object
- #sync_mode=(value) ⇒ Object
- #test_mode=(value) ⇒ Object
- #to_client_options ⇒ Object
Constructor Details
#initialize(base_options = {}) ⇒ InitConfig
Returns a new instance of InitConfig.
152 153 154 |
# File 'lib/posthog/rails/railtie.rb', line 152 def initialize( = {}) @base_options = end |
Instance Method Details
#api_key=(value) ⇒ Object
Core PostHog options
157 158 159 |
# File 'lib/posthog/rails/railtie.rb', line 157 def api_key=(value) @base_options[:api_key] = value end |
#before_send=(value) ⇒ Object
193 194 195 |
# File 'lib/posthog/rails/railtie.rb', line 193 def before_send=(value) @base_options[:before_send] = value end |
#feature_flag_request_timeout_seconds=(value) ⇒ Object
189 190 191 |
# File 'lib/posthog/rails/railtie.rb', line 189 def feature_flag_request_timeout_seconds=(value) @base_options[:feature_flag_request_timeout_seconds] = value end |
#feature_flags_polling_interval=(value) ⇒ Object
185 186 187 |
# File 'lib/posthog/rails/railtie.rb', line 185 def feature_flags_polling_interval=(value) @base_options[:feature_flags_polling_interval] = value end |
#host=(value) ⇒ Object
165 166 167 |
# File 'lib/posthog/rails/railtie.rb', line 165 def host=(value) @base_options[:host] = value end |
#max_queue_size=(value) ⇒ Object
169 170 171 |
# File 'lib/posthog/rails/railtie.rb', line 169 def max_queue_size=(value) @base_options[:max_queue_size] = value end |
#on_error=(value) ⇒ Object
181 182 183 |
# File 'lib/posthog/rails/railtie.rb', line 181 def on_error=(value) @base_options[:on_error] = value end |
#personal_api_key=(value) ⇒ Object
161 162 163 |
# File 'lib/posthog/rails/railtie.rb', line 161 def personal_api_key=(value) @base_options[:personal_api_key] = value end |
#sync_mode=(value) ⇒ Object
177 178 179 |
# File 'lib/posthog/rails/railtie.rb', line 177 def sync_mode=(value) @base_options[:sync_mode] = value end |
#test_mode=(value) ⇒ Object
173 174 175 |
# File 'lib/posthog/rails/railtie.rb', line 173 def test_mode=(value) @base_options[:test_mode] = value end |
#to_client_options ⇒ Object
197 198 199 |
# File 'lib/posthog/rails/railtie.rb', line 197 def @base_options end |