Class: Ident::Response::USERID
- Inherits:
-
BasicResponse
- Object
- BasicResponse
- Ident::Response::USERID
- Defined in:
- lib/ident.rb
Instance Attribute Summary collapse
-
#charset ⇒ Object
readonly
the charset on the system, defaults to US-ASCII.
-
#os ⇒ Object
readonly
the operating system of the user.
-
#userid ⇒ Object
readonly
the userid.
Instance Method Summary collapse
-
#initialize(os, userid) ⇒ USERID
constructor
A new instance of USERID.
Methods inherited from BasicResponse
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
#charset ⇒ Object (readonly)
the charset on the system, defaults to US-ASCII
34 35 36 |
# File 'lib/ident.rb', line 34 def charset @charset end |
#os ⇒ Object (readonly)
the operating system of the user
32 33 34 |
# File 'lib/ident.rb', line 32 def os @os end |
#userid ⇒ Object (readonly)
the userid
36 37 38 |
# File 'lib/ident.rb', line 36 def userid @userid end |