Class: OsCtld::UtmpReader::Entry

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/osctld/utmp_reader.rb

Constant Summary collapse

TYPES =
%i[
  empty
  run_lvl
  boot_time
  new_time
  old_time
  init_process
  login_process
  user_process
  dead_process
  accounting
].freeze

Instance Method Summary collapse

Instance Method Details

#record_typeSymbol

Returns:

  • (Symbol)


57
58
59
# File 'lib/osctld/utmp_reader.rb', line 57

def record_type
  TYPES[ut_type]
end