Class: EVSSClaim

Inherits:
ApplicationRecord show all
Defined in:
app/models/evss_claim.rb

Defined Under Namespace

Classes: RequestDecision

Class Method Summary collapse

Methods inherited from ApplicationRecord

descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?

Class Method Details

.claim_for_user_account(user_account) ⇒ Object



18
19
20
21
22
# File 'app/models/evss_claim.rb', line 18

def self.()
  return EVSSClaim.none unless 

  where(user_account:)
end

.claim_for_user_uuid(user_uuid) ⇒ Object



12
13
14
15
16
# File 'app/models/evss_claim.rb', line 12

def self.claim_for_user_uuid(user_uuid)
  return EVSSClaim.none unless user_uuid

  where(user_uuid:)
end

.for_user(user) ⇒ Object



8
9
10
# File 'app/models/evss_claim.rb', line 8

def self.for_user(user)
  claim_for_user_uuid(user.uuid).or((user.))
end