Module: RailsOnboarding::Configuration::Personalization
- Included in:
- RailsOnboarding::Configuration
- Defined in:
- lib/rails_onboarding/configuration/personalization.rb
Overview
Per-user-type personalized onboarding flows.
Instance Attribute Summary collapse
-
#personalization_enabled ⇒ Object
Returns the value of attribute personalization_enabled.
-
#personalized_flows ⇒ Object
Returns the value of attribute personalized_flows.
-
#user_type_method ⇒ Object
Returns the value of attribute user_type_method.
Instance Method Summary collapse
-
#personalized_flow(user_type) ⇒ Array?
Get a personalized flow for a user type.
Instance Attribute Details
#personalization_enabled ⇒ Object
Returns the value of attribute personalization_enabled.
5 6 7 |
# File 'lib/rails_onboarding/configuration/personalization.rb', line 5 def personalization_enabled @personalization_enabled end |
#personalized_flows ⇒ Object
Returns the value of attribute personalized_flows.
5 6 7 |
# File 'lib/rails_onboarding/configuration/personalization.rb', line 5 def personalized_flows @personalized_flows end |
#user_type_method ⇒ Object
Returns the value of attribute user_type_method.
5 6 7 |
# File 'lib/rails_onboarding/configuration/personalization.rb', line 5 def user_type_method @user_type_method end |
Instance Method Details
#personalized_flow(user_type) ⇒ Array?
Get a personalized flow for a user type
11 12 13 14 |
# File 'lib/rails_onboarding/configuration/personalization.rb', line 11 def personalized_flow(user_type) return nil unless personalization_enabled personalized_flows[user_type.to_sym] end |