Class: GreenGarden::ActivityTracker

Inherits:
Struct
  • Object
show all
Defined in:
lib/green_garden/models/activity_tracker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeActivityTracker



5
6
7
8
9
10
# File 'lib/green_garden/models/activity_tracker.rb', line 5

def initialize(*)
  super
  self.shifts ||= 0
  self.parent_nodes ||= {}
  self.children_nodes ||= []
end

Instance Attribute Details

#children_nodesObject

Returns the value of attribute children_nodes



4
5
6
# File 'lib/green_garden/models/activity_tracker.rb', line 4

def children_nodes
  @children_nodes
end

#parent_nodesObject

Returns the value of attribute parent_nodes



4
5
6
# File 'lib/green_garden/models/activity_tracker.rb', line 4

def parent_nodes
  @parent_nodes
end

#shiftsObject

Returns the value of attribute shifts



4
5
6
# File 'lib/green_garden/models/activity_tracker.rb', line 4

def shifts
  @shifts
end