class Linux::Utmpx::UtmpxParser
Constants
- UT_HOSTSIZE
- UT_IDSIZE
- UT_LINESIZE
- UT_NAMESIZE
Public Instance Methods
host()
click to toggle source
# File lib/linux/utmpx/parser.rb, line 67 def host ut_host end
id()
click to toggle source
# File lib/linux/utmpx/parser.rb, line 63 def id ut_id end
line()
click to toggle source
# File lib/linux/utmpx/parser.rb, line 55 def line ut_line end
pid()
click to toggle source
# File lib/linux/utmpx/parser.rb, line 51 def pid ut_pid end
time()
click to toggle source
# File lib/linux/utmpx/parser.rb, line 40 def time Time.at(ut_tv.tv_sec, ut_tv.tv_usec) end
type()
click to toggle source
# File lib/linux/utmpx/parser.rb, line 44 def type Linux::Utmpx::Type.constants.each do |sym| return sym if Linux::Utmpx::Type.const_get(sym) == ut_type end ut_type end
user()
click to toggle source
# File lib/linux/utmpx/parser.rb, line 59 def user ut_user end