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
10 11 12 |
# File 'lib/sslcheck/client.rb', line 10 def initialize self.errors = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
8 9 10 |
# File 'lib/sslcheck/client.rb', line 8 def errors @errors end |
#host_name ⇒ Object
Returns the value of attribute host_name.
8 9 10 |
# File 'lib/sslcheck/client.rb', line 8 def host_name @host_name end |
Instance Method Details
#ca_bundle ⇒ Object
26 27 28 |
# File 'lib/sslcheck/client.rb', line 26 def ca_bundle @raw_peer_cert_chain.map{|ca_cert| Certificate.new(ca_cert) } end |
#peer_cert ⇒ Object
22 23 24 |
# File 'lib/sslcheck/client.rb', line 22 def peer_cert Certificate.new(@raw_peer_cert) end |
#raw_peer_cert=(peer_cert) ⇒ Object
14 15 16 |
# File 'lib/sslcheck/client.rb', line 14 def raw_peer_cert=(peer_cert) @raw_peer_cert = peer_cert end |
#raw_peer_cert_chain=(peer_cert_chain) ⇒ Object
18 19 20 |
# File 'lib/sslcheck/client.rb', line 18 def raw_peer_cert_chain=(peer_cert_chain) @raw_peer_cert_chain = peer_cert_chain end |