Class: Glacier2::SSLInfo
- Inherits:
-
Object
- Object
- Glacier2::SSLInfo
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/Glacier2/SSLInfo.rb
Instance Attribute Summary collapse
-
#certs ⇒ Object
Returns the value of attribute certs.
-
#cipher ⇒ Object
Returns the value of attribute cipher.
-
#localHost ⇒ Object
Returns the value of attribute localHost.
-
#localPort ⇒ Object
Returns the value of attribute localPort.
-
#remoteHost ⇒ Object
Returns the value of attribute remoteHost.
-
#remotePort ⇒ Object
Returns the value of attribute remotePort.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(remoteHost = '', remotePort = 0, localHost = '', localPort = 0, cipher = '', certs = nil) ⇒ SSLInfo
constructor
A new instance of SSLInfo.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(remoteHost = '', remotePort = 0, localHost = '', localPort = 0, cipher = '', certs = nil) ⇒ SSLInfo
Returns a new instance of SSLInfo.
25 26 27 28 29 30 31 32 |
# File 'lib/Glacier2/SSLInfo.rb', line 25 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
#certs ⇒ Object
Returns the value of attribute certs.
60 61 62 |
# File 'lib/Glacier2/SSLInfo.rb', line 60 def certs @certs end |
#cipher ⇒ Object
Returns the value of attribute cipher.
60 61 62 |
# File 'lib/Glacier2/SSLInfo.rb', line 60 def cipher @cipher end |
#localHost ⇒ Object
Returns the value of attribute localHost.
60 61 62 |
# File 'lib/Glacier2/SSLInfo.rb', line 60 def localHost @localHost end |
#localPort ⇒ Object
Returns the value of attribute localPort.
60 61 62 |
# File 'lib/Glacier2/SSLInfo.rb', line 60 def localPort @localPort end |
#remoteHost ⇒ Object
Returns the value of attribute remoteHost.
60 61 62 |
# File 'lib/Glacier2/SSLInfo.rb', line 60 def remoteHost @remoteHost end |
#remotePort ⇒ Object
Returns the value of attribute remotePort.
60 61 62 |
# File 'lib/Glacier2/SSLInfo.rb', line 60 def remotePort @remotePort end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/Glacier2/SSLInfo.rb', line 45 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
56 57 58 |
# File 'lib/Glacier2/SSLInfo.rb', line 56 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/Glacier2/SSLInfo.rb', line 34 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 |