about summary refs log tree commit diff
path: root/app/serializers/rest/keys/claim_result_serializer.rb
blob: 145044f557231d37e941d95bad66ccd111976447 (plain) (blame)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class REST::Keys::ClaimResultSerializer < ActiveModel::Serializer
  attributes :account_id, :device_id, :key_id, :key, :signature

  def account_id
    object.account.id.to_s
  end
end