In Files

  • dl/win32/lib/win32/sspi.rb

Parent

Methods

Win32::SSPI::SSPIResult

Takes a return result from an SSPI function and interprets the value.

Attributes

value[R]

Public Class Methods

new(value) click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 181
def initialize(value)
        # convert to unsigned long
        value = [value].pack("L").unpack("L").first
        raise "#{value.to_s(16)} is not a recognized result" unless @@map.has_key? value
        @value = value
end
            

Public Instance Methods

==(other) click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 196
def ==(other)
        if other.is_a?(SSPIResult)
                @value == other.value
        elsif other.is_a?(Fixnum)
                @value == @@map[other]
        else
                false
        end
end
            
ok?() click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 192
def ok?
        @value == SEC_I_CONTINUE_NEEDED || @value == SEC_E_OK
end
            
to_s() click to toggle source
 
               # File dl/win32/lib/win32/sspi.rb, line 188
def to_s
        @@map[@value].to_s
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus