Class: Ident::Response::ERROR
- Ident::Response::BasicResponse
- Ident::Response::ERROR
This class gives access to the error returned by an identd. It defines method for every possible kind of error: invalid_port? no_user? hidden_user? unknown_error?
Attributes
Instance Attributes
type | [R] | public |
Returns the value of attribute type. |
---|
Constructor Summary
public
initialize(type)
[View source]
55 56 57 |
# File 'lib/ident.rb', line 55 def initialize(type) @type = type end |
Public Visibility
Public Instance Method Summary
#error? | |
---|---|
#hidden_user? |
Does the identd hide information from us?. |
#invalid_port? |
Did we specify an invalid port?. |
#no_user? |
Is no user known for the given connection specification?. |
#unknown_error? |
Did an unknown error occur?. |
Public Instance Methods Inherited from Ident::Response::BasicResponse
Public Instance Method Details
error?
public
error?
[View source]
60 |
# File 'lib/ident.rb', line 60 def error?; true; end |
hidden_user?
invalid_port?
public
invalid_port?
Did we specify an invalid port?
[View source]
62 |
# File 'lib/ident.rb', line 62 def invalid_port?; @type == "INVALID-PORT"; end |
no_user?
public
no_user?
Is no user known for the given connection specification?
[View source]
64 |
# File 'lib/ident.rb', line 64 def no_user?; @type == "NO-USER"; end |
unknown_error?
public
unknown_error?
Did an unknown error occur?
[View source]
68 |
# File 'lib/ident.rb', line 68 def unknown_error?; @type == "UNKNOWN-ERROR"; end |