Class: SSLCheck::Client::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/sslcheck/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



20
21
22
# File 'lib/sslcheck/client.rb', line 20

def initialize
  self.errors = []
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



18
19
20
# File 'lib/sslcheck/client.rb', line 18

def errors
  @errors
end

#host_nameObject

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_bundleObject



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_certObject



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