Class: Prof::SSL::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/prof/ssl/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocol, cipher, supported) ⇒ Result

Returns a new instance of Result.



14
15
16
17
18
# File 'lib/prof/ssl/result.rb', line 14

def initialize(protocol, cipher, supported)
  @protocol  = protocol
  @cipher    = String(cipher)
  @supported = supported
end

Instance Attribute Details

#cipherObject (readonly)

Returns the value of attribute cipher.



20
21
22
# File 'lib/prof/ssl/result.rb', line 20

def cipher
  @cipher
end

#protocolObject (readonly)

Returns the value of attribute protocol.



20
21
22
# File 'lib/prof/ssl/result.rb', line 20

def protocol
  @protocol
end

Instance Method Details

#supported?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/prof/ssl/result.rb', line 22

def supported?
  @supported
end