class InsuranceProvider

Public Instance Methods

shift_dates(date_diff) click to toggle source
# File lib/health-data-standards/models/insurance_provider.rb, line 16
def shift_dates(date_diff)
  self.start_time = self.start_time.nil? ? nil : self.start_time + date_diff
  self.end_time = self.end_time.nil? ? nil : self.end_time + date_diff
  self.time = self.time.nil? ? nil : self.time + date_diff
  self.guarantors.each do |g|
    g.shift_dates(date_diff)
  end
  
end