Class: Ident::Response::USERID

Inherits:
BasicResponse show all
Defined in:
lib/ident.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BasicResponse

#error?

Constructor Details

#initialize(os, userid) ⇒ USERID

Returns a new instance of USERID.



37
38
39
40
41
# File 'lib/ident.rb', line 37

def initialize(os, userid)
  @os, @charset = os.split('-')
  @charset ||= 'US-ASCII'
  @userid = userid
end

Instance Attribute Details

#charsetObject (readonly)

the charset on the system, defaults to US-ASCII



34
35
36
# File 'lib/ident.rb', line 34

def charset
  @charset
end

#osObject (readonly)

the operating system of the user



32
33
34
# File 'lib/ident.rb', line 32

def os
  @os
end

#useridObject (readonly)

the userid



36
37
38
# File 'lib/ident.rb', line 36

def userid
  @userid
end