diaspora/app/serializers/export/person_metadata_serializer.rb
2017-09-17 19:29:15 +02:00

19 lines
324 B
Ruby

# frozen_string_literal: true
module Export
class PersonMetadataSerializer < ActiveModel::Serializer
attributes :guid,
:account_id,
:public_key
private
def account_id
object.diaspora_handle
end
def public_key
object.serialized_public_key
end
end
end