Module: Trabox::Relay::Relayable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/trabox/relay/relayable.rb
Instance Method Summary collapse
-
#published_done!(message_id) ⇒ Object
message_idとpublished_atを更新する publishした結果からpublishした時間を取得できないため、Timeクラスを使用する.
Instance Method Details
#published_done!(message_id) ⇒ Object
message_idとpublished_atを更新するpublishした結果からpublishした時間を取得できないため、Timeクラスを使用する
18 19 20 21 22 23 24 |
# File 'lib/trabox/relay/relayable.rb', line 18 def published_done!() raise ArgumentError if .blank? update!(message_id: , published_at: Time.current.to_formatted_s(:iso8601)) Rails.logger.debug "Event record updated. message_id=#{}" end |