Cross Reference: action_serializer.rb
xref
: /
ontohub
/
app
/
serializers
/
action_serializer.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
ActionSerializer
<
ApplicationSerializer
class
Reference
<
ApplicationSerializer
attributes
:
iri
def
iri
urls.action
_iri_url
(
object
,
host
:
Settings.hostname
,
port
:
Ontohub
::
Application.config.port
)
end
end
attributes
:
iri
, :
status
, :
eta
def
iri
Reference.new
(
object
)
.
iri
end
def
eta
object.eta.to
_i
end
end