Class: LoyaltyRef::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/loyalty_ref/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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_pathObject

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_locationObject

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_ruleObject

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_trackingObject

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_changedObject

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_daysObject

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_ruleObject

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_nameObject

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_lengthObject

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_rewardObject

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_modifierObject

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_thresholdsObject

Returns the value of attribute tier_thresholds.



5
6
7
# File 'lib/loyalty_ref/configuration.rb', line 5

def tier_thresholds
  @tier_thresholds
end