Class: 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

charset, os, userid

Public Instance Method Details

error?

public error?

Meta Tags

[View source]


60
# File 'lib/ident.rb', line 60

def error?; true; end

hidden_user?

public hidden_user?

Does the identd hide information from us?

[View source]


66
# File 'lib/ident.rb', line 66

def hidden_user?; @type == "HIDDEN-USER"; end

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
Generated on Wednesday, October 14 2009 at 04:55:47 PM by YARD 0.2.3.3 (ruby-1.9.1).