Class: RailsOnboarding::OrganizationConfig
- Inherits:
-
Object
- Object
- RailsOnboarding::OrganizationConfig
- Defined in:
- lib/rails_onboarding/multi_tenant.rb
Overview
Configuration object for organization-specific settings
Instance Attribute Summary collapse
-
#enable_ab_testing ⇒ Object
Returns the value of attribute enable_ab_testing.
-
#enable_analytics ⇒ Object
Returns the value of attribute enable_analytics.
-
#enable_milestones ⇒ Object
Returns the value of attribute enable_milestones.
-
#enable_tooltips ⇒ Object
Returns the value of attribute enable_tooltips.
-
#feature_tooltips ⇒ Object
Returns the value of attribute feature_tooltips.
-
#milestones ⇒ Object
Returns the value of attribute milestones.
-
#personalization_enabled ⇒ Object
Returns the value of attribute personalization_enabled.
-
#redirect_after_completion ⇒ Object
Returns the value of attribute redirect_after_completion.
-
#redirect_after_skip ⇒ Object
Returns the value of attribute redirect_after_skip.
-
#steps ⇒ Object
Returns the value of attribute steps.
Instance Method Summary collapse
-
#initialize(organization_id) ⇒ OrganizationConfig
constructor
A new instance of OrganizationConfig.
- #to_hash ⇒ Object
Constructor Details
#initialize(organization_id) ⇒ OrganizationConfig
Returns a new instance of OrganizationConfig.
279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 279 def initialize(organization_id) @organization_id = organization_id @steps = [] @feature_tooltips = {} @milestones = {} @enable_tooltips = true @enable_milestones = true @enable_analytics = true @enable_ab_testing = false @personalization_enabled = false end |
Instance Attribute Details
#enable_ab_testing ⇒ Object
Returns the value of attribute enable_ab_testing.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def enable_ab_testing @enable_ab_testing end |
#enable_analytics ⇒ Object
Returns the value of attribute enable_analytics.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def enable_analytics @enable_analytics end |
#enable_milestones ⇒ Object
Returns the value of attribute enable_milestones.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def enable_milestones @enable_milestones end |
#enable_tooltips ⇒ Object
Returns the value of attribute enable_tooltips.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def enable_tooltips @enable_tooltips end |
#feature_tooltips ⇒ Object
Returns the value of attribute feature_tooltips.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def feature_tooltips @feature_tooltips end |
#milestones ⇒ Object
Returns the value of attribute milestones.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def milestones @milestones end |
#personalization_enabled ⇒ Object
Returns the value of attribute personalization_enabled.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def personalization_enabled @personalization_enabled end |
#redirect_after_completion ⇒ Object
Returns the value of attribute redirect_after_completion.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def redirect_after_completion @redirect_after_completion end |
#redirect_after_skip ⇒ Object
Returns the value of attribute redirect_after_skip.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def redirect_after_skip @redirect_after_skip end |
#steps ⇒ Object
Returns the value of attribute steps.
274 275 276 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 274 def steps @steps end |
Instance Method Details
#to_hash ⇒ Object
291 292 293 294 295 296 297 298 299 300 301 302 303 304 |
# File 'lib/rails_onboarding/multi_tenant.rb', line 291 def to_hash { steps: @steps, feature_tooltips: @feature_tooltips, milestones: @milestones, enable_tooltips: @enable_tooltips, enable_milestones: @enable_milestones, enable_analytics: @enable_analytics, enable_ab_testing: @enable_ab_testing, personalization_enabled: @personalization_enabled, redirect_after_completion: @redirect_after_completion, redirect_after_skip: @redirect_after_skip } end |