Sha256: 910aa2016269f18a4c95577e0e7d41e7df9c12da544003793b8efe0395ec0387

Contents?: true

Size: 393 Bytes

Versions: 20

Compression:

Stored size: 393 Bytes

Contents

class Guarantor
  include Mongoid::Document
  
  embeds_one :organization
  embeds_one :person
  
  field :time, type: Integer
  field :start_time, type: Integer
  field :end_time, type: Integer
  

  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
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
health-data-standards-3.4.6 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.4.5 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.4.4 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.4.3 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.4.2 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.4.1 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.4.0 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.12 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.3.0 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.11 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.10 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.8 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.7 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.6 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.5 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.4 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.3 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.2 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.1 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.2.0 lib/health-data-standards/models/guarantor.rb