Class: Neo4j::MetaModel::HasAssociationSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/neo4j/meta_model/has_association_serializer.rb

Instance Method Summary collapse

Instance Method Details

#from_modelObject



6
7
8
# File 'app/serializers/neo4j/meta_model/has_association_serializer.rb', line 6

def from_model
  object.from_node.id
end

#to_modelObject



10
11
12
# File 'app/serializers/neo4j/meta_model/has_association_serializer.rb', line 10

def to_model
  object.to_node.id
end