Class: Movescount::Point
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Movescount::Point
- Defined in:
- lib/movescount/point.rb
Instance Attribute Summary collapse
-
#move ⇒ Object
Returns the value of attribute move.
Instance Method Summary collapse
-
#initialize(move, attributes = {}) ⇒ Point
constructor
A new instance of Point.
-
#MeasuredAt ⇒ Object
Make sure that MeasuredAt falls back to the time of the sample.
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
#move ⇒ Object
Returns the value of attribute move.
3 4 5 |
# File 'lib/movescount/point.rb', line 3 def move @move end |
Instance Method Details
#MeasuredAt ⇒ Object
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 |