Sha256: 61fd5286675742a24d43e4da5f7540b1fcd07fab955c88bcb7ae9cc707a9cd3c

Contents?: true

Size: 432 Bytes

Versions: 21

Compression:

Stored size: 432 Bytes

Contents

class Guarantor
  include Mongoid::Document
  include Mongoid::Attributes::Dynamic
  
  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

21 entries across 21 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.3.4 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.3.3 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.3.2 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.3.1 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.3.0 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.2.0 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.1.0 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.0.6 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.0.5 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.0.4 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.0.3 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.0.2 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.0.1 lib/health-data-standards/models/guarantor.rb
health-data-standards-4.0.0 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.7.0 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.6.1 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.5.3 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.5.2 lib/health-data-standards/models/guarantor.rb
health-data-standards-3.5.1 lib/health-data-standards/models/guarantor.rb