Class: CardSize

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Comparable
Defined in:
app/models/card_size.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



6
7
8
9
10
11
12
# File 'app/models/card_size.rb', line 6

def <=> (other)
   result = nil
   if (other.kind_of?(CardSize))
     result = human_day_approximate() <=> other.human_day_approximate()
   end
   return result
end