Class: Tracking

Inherits:
Common::Base show all
Defined in:
app/models/tracking.rb

Overview

Tracking Model

Instance Attribute Summary

Attributes inherited from Common::Base

#errors_hash, #metadata

Instance Method Summary collapse

Methods inherited from Common::Base

#changed, #changed?, #changes, default_sort, filterable_attributes, #initialize, max_per_page, per_page, sortable_attributes

Constructor Details

This class inherits a constructor from Common::Base

Instance Method Details

#<=>(other) ⇒ Object



17
18
19
# File 'app/models/tracking.rb', line 17

def <=>(other)
  -(shipped_date <=> other.shipped_date)
end