Class: Cert::RhsmClient

Inherits:
Object
  • Object
show all
Defined in:
app/services/cert/rhsm_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cert) ⇒ RhsmClient

Returns a new instance of RhsmClient.



8
9
10
# File 'app/services/cert/rhsm_client.rb', line 8

def initialize(cert)
  self.cert = extract(cert)
end

Instance Attribute Details

#certObject

Returns the value of attribute cert.



6
7
8
# File 'app/services/cert/rhsm_client.rb', line 6

def cert
  @cert
end

Instance Method Details

#uuidObject



12
13
14
# File 'app/services/cert/rhsm_client.rb', line 12

def uuid
  drop_cn_prefix_from_subject(@cert.subject.to_s)
end