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.
138 139 140 |
# File 'lib/posthog/rails/railtie.rb', line 138 def initialize( = {}) @base_options = end |
Instance Method Details
#api_key=(value) ⇒ Object
Core PostHog options
143 144 145 |
# File 'lib/posthog/rails/railtie.rb', line 143 def api_key=(value) @base_options[:api_key] = value end |
#before_send=(value) ⇒ Object
179 180 181 |
# File 'lib/posthog/rails/railtie.rb', line 179 def before_send=(value) @base_options[:before_send] = value end |
#feature_flag_request_timeout_seconds=(value) ⇒ Object
175 176 177 |
# File 'lib/posthog/rails/railtie.rb', line 175 def feature_flag_request_timeout_seconds=(value) @base_options[:feature_flag_request_timeout_seconds] = value end |
#feature_flags_polling_interval=(value) ⇒ Object
171 172 173 |
# File 'lib/posthog/rails/railtie.rb', line 171 def feature_flags_polling_interval=(value) @base_options[:feature_flags_polling_interval] = value end |
#host=(value) ⇒ Object
151 152 153 |
# File 'lib/posthog/rails/railtie.rb', line 151 def host=(value) @base_options[:host] = value end |
#max_queue_size=(value) ⇒ Object
155 156 157 |
# File 'lib/posthog/rails/railtie.rb', line 155 def max_queue_size=(value) @base_options[:max_queue_size] = value end |
#on_error=(value) ⇒ Object
167 168 169 |
# File 'lib/posthog/rails/railtie.rb', line 167 def on_error=(value) @base_options[:on_error] = value end |
#personal_api_key=(value) ⇒ Object
147 148 149 |
# File 'lib/posthog/rails/railtie.rb', line 147 def personal_api_key=(value) @base_options[:personal_api_key] = value end |
#sync_mode=(value) ⇒ Object
163 164 165 |
# File 'lib/posthog/rails/railtie.rb', line 163 def sync_mode=(value) @base_options[:sync_mode] = value end |
#test_mode=(value) ⇒ Object
159 160 161 |
# File 'lib/posthog/rails/railtie.rb', line 159 def test_mode=(value) @base_options[:test_mode] = value end |
#to_client_options ⇒ Object
183 184 185 |
# File 'lib/posthog/rails/railtie.rb', line 183 def @base_options end |