Sha256: d44d14577f7995611d046b82ded9dbfa042b7b77b67e943d3da29f14424da2e3
Contents?: true
Size: 914 Bytes
Versions: 39
Compression:
Stored size: 914 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware" module Renalware module Messaging module_function def table_name_prefix "messaging_" end def cast_patient(patient) ActiveType.cast(patient, ::Renalware::Messaging::Patient) end def cast_author(author) ActiveType.cast(author, ::Renalware::Messaging::Author) end # def cast_recipient(recipient) # ActiveType.cast(recipient, ::Renalware::Messaging::Recipient) # end module Internal module_function def cast_patient(patient) ActiveType.cast(patient, ::Renalware::Messaging::Internal::Patient) end def cast_author(author) ActiveType.cast(author, ::Renalware::Messaging::Internal::Author) end def cast_recipient(recipient) ActiveType.cast(recipient, ::Renalware::Messaging::Internal::Recipient) end end end end
Version data entries
39 entries across 39 versions & 1 rubygems