Cross Reference: prover_output_serializer.rb
xref
: /
ontohub
/
app
/
serializers
/
prover_output_serializer.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
prover_output_serializer.rb revision d327eb79653cf7820fe583473ab35816d44cd757
class
ProverOutputSerializer
<
ApplicationSerializer
class
Reference
<
ApplicationSerializer
attributes
:
iri
def
iri
url_for
(
object
)
end
end
attributes
:
iri
attributes
:
prover
attributes
:
content
has_one
:
proof_attempt
,
serializer
:
ProofAttemptSerializer
::
Reference
def
iri
Reference.new
(
object
)
.
iri
end
def
prover
object.prover.try
(:
name
)
end
end