Module: PaidUp::Unlimited
- Defined in:
- app/models/paid_up/unlimited.rb
Overview
Unlimited class: designed to output as ‘Unlimited’ for string, -1 for db, or 999999999 for number.
Class Method Summary collapse
Class Method Details
.initialize ⇒ Object
5 6 7 |
# File 'app/models/paid_up/unlimited.rb', line 5 def self.initialize 999_999_999 end |
.to_i(format = :default) ⇒ Object
9 10 11 |
# File 'app/models/paid_up/unlimited.rb', line 9 def self.to_i(format = :default) format == :db ? -1 : 999_999_999 end |
.to_s ⇒ Object
13 14 15 |
# File 'app/models/paid_up/unlimited.rb', line 13 def self.to_s :unlimited.l end |