You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
363 B
20 lines
363 B
# frozen_string_literal: true
|
|
|
|
class REST::EncryptedMessageSerializer < ActiveModel::Serializer
|
|
attributes :id, :account_id, :device_id,
|
|
:type, :body, :digest, :message_franking,
|
|
:created_at
|
|
|
|
def id
|
|
object.id.to_s
|
|
end
|
|
|
|
def account_id
|
|
object.from_account_id.to_s
|
|
end
|
|
|
|
def device_id
|
|
object.from_device_id
|
|
end
|
|
end
|