Class: Movescount::Sample

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#moveObject

Returns the value of attribute move.



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

def move
  @move
end

Instance Method Details

#LocalTimeObject



10
11
12
# File 'lib/movescount/sample.rb', line 10

def LocalTime
  @local_time ||= DateTime.parse(super)
end