Class: DNApi::SSLCert
Instance Attribute Summary collapse
-
#certificate ⇒ Object
Returns the value of attribute certificate.
-
#certificate_chain ⇒ Object
Returns the value of attribute certificate_chain.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
Attributes inherited from Struct
Instance Method Summary collapse
Methods inherited from Struct
#==, _many, #_many, #_many_values, _ones, #_ones, #_ones_values, _umembers, belongs_to, from, #initialize, #inspect, many, map, one, #to_hash, #umember_inspect, unserialized_member
Methods included from Test::Ext
#default_fauxture_name, #fixture, #generate, #generate_attributes, #pick
Constructor Details
This class inherits a constructor from DNApi::Struct
Instance Attribute Details
#certificate ⇒ Object
Returns the value of attribute certificate
2 3 4 |
# File 'lib/dnapi/ssl_cert.rb', line 2 def certificate @certificate end |
#certificate_chain ⇒ Object
Returns the value of attribute certificate_chain
2 3 4 |
# File 'lib/dnapi/ssl_cert.rb', line 2 def certificate_chain @certificate_chain end |
#private_key ⇒ Object
Returns the value of attribute private_key
2 3 4 |
# File 'lib/dnapi/ssl_cert.rb', line 2 def private_key @private_key end |
Instance Method Details
#to_legacy_hash ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/dnapi/ssl_cert.rb', line 5 def to_legacy_hash { :crt => certificate, :key => private_key, :chain => certificate_chain } end |