Class: KingslyCertbot::CertBundle

Inherits:
Object
  • Object
show all
Defined in:
lib/kingsly_certbot/cert_bundle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_chainObject (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_keyObject (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

#subdomainObject (readonly)

Returns the value of attribute subdomain.



7
8
9
# File 'lib/kingsly_certbot/cert_bundle.rb', line 7

def subdomain
  @subdomain
end

#tldObject (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

#hashObject



22
23
24
# File 'lib/kingsly_certbot/cert_bundle.rb', line 22

def hash
  state.hash
end