Class: AD::LDAP::Response
- Inherits:
-
Object
- Object
- AD::LDAP::Response
- Defined in:
- lib/ad-ldap/response.rb
Overview
descriptions: wiki.service-now.com/index.php?title=LDAP_Error_Codes
Constant Summary collapse
- CODES =
{ :success => 0 }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #handle! ⇒ Object
-
#initialize(code, message) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(code, message) ⇒ Response
Returns a new instance of Response.
14 15 16 17 |
# File 'lib/ad-ldap/response.rb', line 14 def initialize(code, ) self.code = code.to_i self. = end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/ad-ldap/response.rb', line 8 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/ad-ldap/response.rb', line 8 def @message end |