Sha256: 4e38d11d74dfa23b9a72aa84ac04537374adf4c16cad5a42835b0b87479bf980
Contents?: true
Size: 761 Bytes
Versions: 22
Compression:
Stored size: 761 Bytes
Contents
class InsuranceProvider < Entry include Mongoid::Document embedded_in :record, class_name: 'Record' embeds_one :payer, class_name: "Organization" embeds_many :guarantors, class_name: "Guarantor" embeds_one :subscriber, class_name: "Person" field :type, type: String field :member_id, type: String field :relationship, type: Hash field :financial_responsibility_type, type: Hash field :name, type: String 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 end
Version data entries
22 entries across 22 versions & 1 rubygems