Files
baclight/app/services/id_card_queue_service/get_queued_cards.rb
T

17 lines
486 B
Ruby
Raw Normal View History

2026-03-20 10:46:53 -04:00
module IdCardQueueService
2026-03-16 12:09:45 -04:00
class GetQueuedCards
2026-03-19 00:42:27 -04:00
def initialize(pl_plan_keys = nil)
2026-03-16 12:09:45 -04:00
if pl_plan_keys
@employer_pl_plan_keys = pl_plan_keys
else
2026-03-20 10:46:53 -04:00
@employer_pl_plan_keys = IdCard::Setup.active.pluck(:pl_plan_key).join(',')
2026-03-16 12:09:45 -04:00
end
end
def call
CallStoredProc.new('BrittonGetQueuedIdCardMemberKeysTPA', { PLPlanKeys: @employer_pl_plan_keys }).call.to_ary
end
end
end