Class: SatMx::Configuration Private
- Inherits:
-
Data
- Object
- Data
- SatMx::Configuration
- Defined in:
- lib/sat_mx/configuration.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#private_key ⇒ Object
readonly
Returns the value of attribute private_key.
Instance Method Summary collapse
-
#initialize(certificate:, private_key:, password:) ⇒ Configuration
constructor
private
A new instance of Configuration.
Constructor Details
#initialize(certificate:, private_key:, password:) ⇒ Configuration
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Configuration.
4 5 6 7 8 9 10 11 12 |
# File 'lib/sat_mx/configuration.rb', line 4 def initialize(certificate:, private_key:, password:) super( certificate: OpenSSL::X509::Certificate.new(File.read(certificate)), private_key: OpenSSL::PKey::RSA.new( File.read(private_key), password ) ) end |
Instance Attribute Details
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate
3 4 5 |
# File 'lib/sat_mx/configuration.rb', line 3 def certificate @certificate end |
#private_key ⇒ Object (readonly)
Returns the value of attribute private_key
3 4 5 |
# File 'lib/sat_mx/configuration.rb', line 3 def private_key @private_key end |