Class: KingslyCertbot::CertBundle
- Inherits:
-
Object
- Object
- KingslyCertbot::CertBundle
- Defined in:
- lib/kingsly_certbot/cert_bundle.rb
Instance Attribute Summary collapse
-
#full_chain ⇒ Object
readonly
Returns the value of attribute full_chain.
-
#private_key ⇒ Object
readonly
Returns the value of attribute private_key.
-
#subdomain ⇒ Object
readonly
Returns the value of attribute subdomain.
-
#tld ⇒ Object
readonly
Returns the value of attribute tld.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #hash ⇒ Object
-
#initialize(tld, subdomain, private_key, full_chain) ⇒ CertBundle
constructor
A new instance of CertBundle.
Constructor Details
#initialize(tld, subdomain, private_key, full_chain) ⇒ CertBundle
Returns a new instance of CertBundle.
9 10 11 12 13 14 |
# File 'lib/kingsly_certbot/cert_bundle.rb', line 9 def initialize(tld, subdomain, private_key, full_chain) @tld = tld @subdomain = subdomain @private_key = private_key @full_chain = full_chain end |
Instance Attribute Details
#full_chain ⇒ Object (readonly)
Returns the value of attribute full_chain.
7 8 9 |
# File 'lib/kingsly_certbot/cert_bundle.rb', line 7 def full_chain @full_chain end |
#private_key ⇒ Object (readonly)
Returns the value of attribute private_key.
7 8 9 |
# File 'lib/kingsly_certbot/cert_bundle.rb', line 7 def private_key @private_key end |
#subdomain ⇒ Object (readonly)
Returns the value of attribute subdomain.
7 8 9 |
# File 'lib/kingsly_certbot/cert_bundle.rb', line 7 def subdomain @subdomain end |
#tld ⇒ Object (readonly)
Returns the value of attribute tld.
7 8 9 |
# File 'lib/kingsly_certbot/cert_bundle.rb', line 7 def tld @tld end |
Instance Method Details
#==(other) ⇒ Object
16 17 18 19 20 |
# File 'lib/kingsly_certbot/cert_bundle.rb', line 16 def ==(other) return false if other.class != self.class state == other.state end |
#hash ⇒ Object
22 23 24 |
# File 'lib/kingsly_certbot/cert_bundle.rb', line 22 def hash state.hash end |