Class: Glacier2::SSLInfo

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/Glacier2/SSLInfo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

#initialize(remoteHost = '', remotePort = 0, localHost = '', localPort = 0, cipher = '', certs = nil) ⇒ SSLInfo

Returns a new instance of SSLInfo.



13
14
15
16
17
18
19
20
# File 'ruby/Glacier2/SSLInfo.rb', line 13

def initialize(remoteHost='', remotePort=0, localHost='', localPort=0, cipher='', certs=nil)
    @remoteHost = remoteHost
    @remotePort = remotePort
    @localHost = localHost
    @localPort = localPort
    @cipher = cipher
    @certs = certs
end

Instance Attribute Details

#certsObject

Returns the value of attribute certs.



48
49
50
# File 'ruby/Glacier2/SSLInfo.rb', line 48

def certs
  @certs
end

#cipherObject

Returns the value of attribute cipher.



48
49
50
# File 'ruby/Glacier2/SSLInfo.rb', line 48

def cipher
  @cipher
end

#localHostObject

Returns the value of attribute localHost.



48
49
50
# File 'ruby/Glacier2/SSLInfo.rb', line 48

def localHost
  @localHost
end

#localPortObject

Returns the value of attribute localPort.



48
49
50
# File 'ruby/Glacier2/SSLInfo.rb', line 48

def localPort
  @localPort
end

#remoteHostObject

Returns the value of attribute remoteHost.



48
49
50
# File 'ruby/Glacier2/SSLInfo.rb', line 48

def remoteHost
  @remoteHost
end

#remotePortObject

Returns the value of attribute remotePort.



48
49
50
# File 'ruby/Glacier2/SSLInfo.rb', line 48

def remotePort
  @remotePort
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
41
42
# File 'ruby/Glacier2/SSLInfo.rb', line 33

def ==(other)
    return false if !other.is_a? ::Glacier2::SSLInfo or
        @remoteHost != other.remoteHost or
        @remotePort != other.remotePort or
        @localHost != other.localHost or
        @localPort != other.localPort or
        @cipher != other.cipher or
        @certs != other.certs
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


44
45
46
# File 'ruby/Glacier2/SSLInfo.rb', line 44

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



22
23
24
25
26
27
28
29
30
31
# File 'ruby/Glacier2/SSLInfo.rb', line 22

def hash
    _h = 0
    _h = 5 * _h + @remoteHost.hash
    _h = 5 * _h + @remotePort.hash
    _h = 5 * _h + @localHost.hash
    _h = 5 * _h + @localPort.hash
    _h = 5 * _h + @cipher.hash
    _h = 5 * _h + @certs.hash
    _h % 0x7fffffff
end