Class: GraphStarter::View
- Inherits:
-
Object
- Object
- GraphStarter::View
- Includes:
- Neo4j::ActiveRel
- Defined in:
- app/models/graph_starter/view.rb
Instance Method Summary collapse
Instance Method Details
#increment_destination_view_count ⇒ Object
24 25 26 27 28 |
# File 'app/models/graph_starter/view.rb', line 24 def increment_destination_view_count to_node.view_count ||= 0 to_node.view_count += 1 to_node.save end |
#set_viewed_at ⇒ Object
18 19 20 |
# File 'app/models/graph_starter/view.rb', line 18 def set_viewed_at self.viewed_at ||= Time.now end |