Cross Reference: axiom_serializer.rb
xref
: /
ontohub
/
app
/
serializers
/
axiom_serializer.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
AxiomSerializer
<
ApplicationSerializer
class
Reference
<
ApplicationSerializer
attributes
:
iri
attributes
:
name
def
iri
url_for
(
object
)
end
end
attributes
:
iri
, :
symbols
attributes
:
name
, :
definition
, :
imported
has_one
:
ontology
,
serializer
:
OntologySerializer
::
Reference
def
iri
Reference.new
(
object
)
.
iri
end
def
symbols
url_for
([
object
, :
symbols
])
end
def
definition
object.text
end
end