Class: DNApi::SSLCert

Inherits:
Struct
  • Object
show all
Defined in:
lib/dnapi/ssl_cert.rb

Instance Attribute Summary collapse

Attributes inherited from Struct

#parent

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

#certificateObject

Returns the value of attribute certificate

Returns:

  • (Object)

    the current value of certificate



2
3
4
# File 'lib/dnapi/ssl_cert.rb', line 2

def certificate
  @certificate
end

#certificate_chainObject

Returns the value of attribute certificate_chain

Returns:

  • (Object)

    the current value of certificate_chain



2
3
4
# File 'lib/dnapi/ssl_cert.rb', line 2

def certificate_chain
  @certificate_chain
end

#private_keyObject

Returns the value of attribute private_key

Returns:

  • (Object)

    the current value of private_key



2
3
4
# File 'lib/dnapi/ssl_cert.rb', line 2

def private_key
  @private_key
end

Instance Method Details

#to_legacy_hashObject



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