Exception: PricingPlans::LegacyDefaultPlanAssignmentError

Inherits:
Error
  • Object
show all
Defined in:
lib/pricing_plans.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, configured_default_plan_key:, legacy_assignment_method_name:) ⇒ LegacyDefaultPlanAssignmentError

Returns a new instance of LegacyDefaultPlanAssignmentError.



15
16
17
18
19
# File 'lib/pricing_plans.rb', line 15

def initialize(message, configured_default_plan_key:, legacy_assignment_method_name:)
  super(message)
  @configured_default_plan_key = configured_default_plan_key.to_sym
  @legacy_assignment_method_name = legacy_assignment_method_name
end

Instance Attribute Details

#configured_default_plan_keyObject (readonly)

Returns the value of attribute configured_default_plan_key.



13
14
15
# File 'lib/pricing_plans.rb', line 13

def configured_default_plan_key
  @configured_default_plan_key
end

#legacy_assignment_method_nameObject (readonly)

Returns the value of attribute legacy_assignment_method_name.



13
14
15
# File 'lib/pricing_plans.rb', line 13

def legacy_assignment_method_name
  @legacy_assignment_method_name
end