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



10
11
12
# File 'lib/sslcheck/client.rb', line 10

def initialize
  self.errors = []
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



8
9
10
# File 'lib/sslcheck/client.rb', line 8

def errors
  @errors
end

#host_nameObject

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_bundleObject



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_certObject



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