Class: Clock
Instance Attribute Summary collapse
-
#in ⇒ Object
Whether its in or out.
-
#out ⇒ Object
Whether its in or out.
Attributes inherited from Record
Instance Method Summary collapse
-
#initialize(type, date, auth) ⇒ Clock
constructor
A new instance of Clock.
Constructor Details
#initialize(type, date, auth) ⇒ Clock
Returns a new instance of Clock.
34 35 36 37 38 39 |
# File 'lib/record.rb', line 34 def initialize(type, date, auth) @in = (type == :in) @out = (type == :out) @date = date @author = auth end |
Instance Attribute Details
#in ⇒ Object
Whether its in or out
33 34 35 |
# File 'lib/record.rb', line 33 def in @in end |
#out ⇒ Object
Whether its in or out
33 34 35 |
# File 'lib/record.rb', line 33 def out @out end |