Class: Clock

Inherits:
Record show all
Defined in:
lib/record.rb

Instance Attribute Summary collapse

Attributes inherited from Record

#author, #date

Instance Method Summary collapse

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

#inObject

Whether its in or out



33
34
35
# File 'lib/record.rb', line 33

def in
  @in
end

#outObject

Whether its in or out



33
34
35
# File 'lib/record.rb', line 33

def out
  @out
end