Class: Movescount::Sample
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Movescount::Sample
- Defined in:
- lib/movescount/sample.rb
Instance Attribute Summary collapse
-
#move ⇒ Object
Returns the value of attribute move.
Instance Method Summary collapse
-
#initialize(move, attributes = {}) ⇒ Sample
constructor
A new instance of Sample.
- #LocalTime ⇒ Object
Constructor Details
#initialize(move, attributes = {}) ⇒ Sample
Returns a new instance of Sample.
5 6 7 8 |
# File 'lib/movescount/sample.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/sample.rb', line 3 def move @move end |
Instance Method Details
#LocalTime ⇒ Object
10 11 12 |
# File 'lib/movescount/sample.rb', line 10 def LocalTime @local_time ||= DateTime.parse(super) end |