1
0

encrypted_message_serializer.rb 363 B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. class REST::EncryptedMessageSerializer < ActiveModel::Serializer
  3. attributes :id, :account_id, :device_id,
  4. :type, :body, :digest, :message_franking,
  5. :created_at
  6. def id
  7. object.id.to_s
  8. end
  9. def account_id
  10. object.from_account_id.to_s
  11. end
  12. def device_id
  13. object.from_device_id
  14. end
  15. end