Sha256: 156d8ea8b4f7bd7b960bb27f0892367a4fe0b152053ebde2bec38d94598fd12c

Contents?: true

Size: 883 Bytes

Versions: 22

Compression:

Stored size: 883 Bytes

Contents

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

22 entries across 22 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/messaging.rb
renalware-core-2.0.7 app/models/renalware/messaging.rb
renalware-core-2.0.5 app/models/renalware/messaging.rb
renalware-core-2.0.4 app/models/renalware/messaging.rb
renalware-core-2.0.3 app/models/renalware/messaging.rb
renalware-core-2.0.2 app/models/renalware/messaging.rb
renalware-core-2.0.1 app/models/renalware/messaging.rb
renalware-core-2.0.0 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc11 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc3 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/messaging.rb
renalware-core-2.0.0.pre.beta12 app/models/renalware/messaging.rb