Class: SSLCheck::Client::Response
- Inherits:
-
Object
- Object
- SSLCheck::Client::Response
- Defined in:
- lib/sslcheck/client.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#host_name ⇒ Object
Returns the value of attribute host_name.
Instance Method Summary collapse
- #ca_bundle ⇒ Object
-
#initialize ⇒ Response
constructor
A new instance of Response.
- #peer_cert ⇒ Object
- #raw_peer_cert=(peer_cert) ⇒ Object
- #raw_peer_cert_chain=(peer_cert_chain) ⇒ Object
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
20 21 22 |
# File 'lib/sslcheck/client.rb', line 20 def initialize self.errors = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
18 19 20 |
# File 'lib/sslcheck/client.rb', line 18 def errors @errors end |
#host_name ⇒ Object
Returns the value of attribute host_name.
18 19 20 |
# File 'lib/sslcheck/client.rb', line 18 def host_name @host_name end |
Instance Method Details
#ca_bundle ⇒ Object
36 37 38 |
# File 'lib/sslcheck/client.rb', line 36 def ca_bundle @raw_peer_cert_chain.map{|ca_cert| Certificate.new(ca_cert) } end |
#peer_cert ⇒ Object
32 33 34 |
# File 'lib/sslcheck/client.rb', line 32 def peer_cert Certificate.new(@raw_peer_cert) end |
#raw_peer_cert=(peer_cert) ⇒ Object
24 25 26 |
# File 'lib/sslcheck/client.rb', line 24 def raw_peer_cert=(peer_cert) @raw_peer_cert = peer_cert end |
#raw_peer_cert_chain=(peer_cert_chain) ⇒ Object
28 29 30 |
# File 'lib/sslcheck/client.rb', line 28 def raw_peer_cert_chain=(peer_cert_chain) @raw_peer_cert_chain = peer_cert_chain end |