Class: Zillion::FixedPlan
Constant Summary
Constants inherited from Plan
Instance Method Summary collapse
Methods inherited from Plan
#<=>, #amounts_for, #available_for?, factory, #features, #has?, #initialize, #key, #limit_for, #limits, #monthly_fee_for, #name
Constructor Details
This class inherits a constructor from Zillion::Plan
Instance Method Details
#monthly_fee ⇒ Object
116 117 118 119 120 121 122 |
# File 'lib/zillion/plan.rb', line 116 def monthly_fee unless spec[:monthly_fee].is_a?(Numeric) raise InvalidFeeError.new("Invalid monthly_fee: #{spec[:monthly_fee]}") end spec[:monthly_fee].to_f end |