Class: Movescount::Point

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/movescount/point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(move, attributes = {}) ⇒ Point

Returns a new instance of Point.



5
6
7
8
# File 'lib/movescount/point.rb', line 5

def initialize(move, attributes = {})
  @move = move
  super attributes
end

Instance Attribute Details

#moveObject

Returns the value of attribute move.



3
4
5
# File 'lib/movescount/point.rb', line 3

def move
  @move
end

Instance Method Details

#MeasuredAtObject

Make sure that MeasuredAt falls back to the time of the sample



11
12
13
# File 'lib/movescount/point.rb', line 11

def MeasuredAt
  super || DateTime.parse(self.LocalTime)
end