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.
21 22 23 |
# File 'lib/sslcheck/client.rb', line 21 def initialize self.errors = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
19 20 21 |
# File 'lib/sslcheck/client.rb', line 19 def errors @errors end |
#host_name ⇒ Object
Returns the value of attribute host_name.
19 20 21 |
# File 'lib/sslcheck/client.rb', line 19 def host_name @host_name end |
Instance Method Details
#ca_bundle ⇒ Object
37 38 39 |
# File 'lib/sslcheck/client.rb', line 37 def ca_bundle @raw_peer_cert_chain.map{|ca_cert| Certificate.new(ca_cert) } end |
#peer_cert ⇒ Object
33 34 35 |
# File 'lib/sslcheck/client.rb', line 33 def peer_cert Certificate.new(@raw_peer_cert) end |
#raw_peer_cert=(peer_cert) ⇒ Object
25 26 27 |
# File 'lib/sslcheck/client.rb', line 25 def raw_peer_cert=(peer_cert) @raw_peer_cert = peer_cert end |
#raw_peer_cert_chain=(peer_cert_chain) ⇒ Object
29 30 31 |
# File 'lib/sslcheck/client.rb', line 29 def raw_peer_cert_chain=(peer_cert_chain) @raw_peer_cert_chain = peer_cert_chain end |