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
7 8 9 |
# File 'app/models/paid_up/unlimited.rb', line 7 def self.initialize 999_999_999 end |
.to_i(format = :default) ⇒ Object
11 12 13 |
# File 'app/models/paid_up/unlimited.rb', line 11 def self.to_i(format = :default) format == :db ? -1 : 999_999_999 end |
.to_s ⇒ Object
15 16 17 |
# File 'app/models/paid_up/unlimited.rb', line 15 def self.to_s :unlimited.l end |