Class: Zillion::FixedPlan

Inherits:
Plan
  • Object
show all
Defined in:
lib/zillion/plan.rb

Constant Summary

Constants inherited from Plan

Plan::TYPES

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_feeObject



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