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.



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

def initialize
  self.errors = []
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



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

def errors
  @errors
end

#host_nameObject

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_bundleObject



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_certObject



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