Sha256: 3b501d71923413a6e615d033095dba08d06c79d466feb90c044a3ba84bdf7c1d
Contents?: true
Size: 367 Bytes
Versions: 20
Compression:
Stored size: 367 Bytes
Contents
class ProviderPerformance include Mongoid::Document field :start_date, type: Integer field :end_date, type: Integer belongs_to :provider embedded_in :record def shift_dates(date_diff) self.start_date = self.start_date.nil? ? nil : self.start_date + date_diff self.end_date = self.end_date.nil? ? nil : self.end_date + date_diff end end
Version data entries
20 entries across 20 versions & 1 rubygems