Exception: PricingPlans::FeatureDenied

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, feature_key: nil, plan_owner: nil) ⇒ FeatureDenied

Returns a new instance of FeatureDenied.



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

def initialize(message = nil, feature_key: nil, plan_owner: nil)
  super(message)
  @feature_key = feature_key
  @plan_owner = plan_owner
end

Instance Attribute Details

#feature_keyObject (readonly)

Returns the value of attribute feature_key.



11
12
13
# File 'lib/pricing_plans.rb', line 11

def feature_key
  @feature_key
end

#plan_ownerObject (readonly)

Returns the value of attribute plan_owner.



11
12
13
# File 'lib/pricing_plans.rb', line 11

def plan_owner
  @plan_owner
end