Class: LoyaltyRef::Configuration
- Inherits:
-
Object
- Object
- LoyaltyRef::Configuration
- Defined in:
- lib/loyalty_ref/configuration.rb
Instance Attribute Summary collapse
-
#admin_route_path ⇒ Object
Returns the value of attribute admin_route_path.
-
#collect_geo_location ⇒ Object
Returns the value of attribute collect_geo_location.
-
#earning_rule ⇒ Object
Returns the value of attribute earning_rule.
-
#enable_device_tracking ⇒ Object
Returns the value of attribute enable_device_tracking.
-
#on_tier_changed ⇒ Object
Returns the value of attribute on_tier_changed.
-
#points_expiry_days ⇒ Object
Returns the value of attribute points_expiry_days.
-
#redeem_rule ⇒ Object
Returns the value of attribute redeem_rule.
-
#reference_class_name ⇒ Object
Returns the value of attribute reference_class_name.
-
#referral_code_length ⇒ Object
Returns the value of attribute referral_code_length.
-
#referral_reward ⇒ Object
Returns the value of attribute referral_reward.
-
#reward_modifier ⇒ Object
Returns the value of attribute reward_modifier.
-
#tier_thresholds ⇒ Object
Returns the value of attribute tier_thresholds.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/loyalty_ref/configuration.rb', line 18 def initialize @reference_class_name = "User" @tier_thresholds = { "Silver" => 500, "Gold" => 1000, "Platinum" => 2500 } @points_expiry_days = 90 @referral_code_length = 8 @admin_route_path = "/loyalty" @enable_device_tracking = true @collect_geo_location = false # Default to false for privacy end |
Instance Attribute Details
#admin_route_path ⇒ Object
Returns the value of attribute admin_route_path.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def admin_route_path @admin_route_path end |
#collect_geo_location ⇒ Object
Returns the value of attribute collect_geo_location.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def collect_geo_location @collect_geo_location end |
#earning_rule ⇒ Object
Returns the value of attribute earning_rule.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def earning_rule @earning_rule end |
#enable_device_tracking ⇒ Object
Returns the value of attribute enable_device_tracking.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def enable_device_tracking @enable_device_tracking end |
#on_tier_changed ⇒ Object
Returns the value of attribute on_tier_changed.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def on_tier_changed @on_tier_changed end |
#points_expiry_days ⇒ Object
Returns the value of attribute points_expiry_days.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def points_expiry_days @points_expiry_days end |
#redeem_rule ⇒ Object
Returns the value of attribute redeem_rule.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def redeem_rule @redeem_rule end |
#reference_class_name ⇒ Object
Returns the value of attribute reference_class_name.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def reference_class_name @reference_class_name end |
#referral_code_length ⇒ Object
Returns the value of attribute referral_code_length.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def referral_code_length @referral_code_length end |
#referral_reward ⇒ Object
Returns the value of attribute referral_reward.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def referral_reward @referral_reward end |
#reward_modifier ⇒ Object
Returns the value of attribute reward_modifier.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def reward_modifier @reward_modifier end |
#tier_thresholds ⇒ Object
Returns the value of attribute tier_thresholds.
5 6 7 |
# File 'lib/loyalty_ref/configuration.rb', line 5 def tier_thresholds @tier_thresholds end |