Sha256: 849e2050d480ae9f0adaf6f91d3198aa38feccc639598e74eaace66967281e93

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

require_dependency "renalware/messaging"

module Renalware
  module Messaging
    class InternalMessagePresenter < SimpleDelegator
      def age_in_days
        (Time.zone.now.to_date - sent_at.to_date).to_i
      end

      def html_identifier
        "message-#{id}"
      end

      def html_preview_identifier
        "message-preview-#{id}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/messaging/internal_message_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/messaging/internal_message_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/messaging/internal_message_presenter.rb