Class: WorkOS::ConnectionSAMLCertificateRenewedDataCertificate

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/sso/connection_saml_certificate_renewed_data_certificate.rb

Constant Summary collapse

HASH_ATTRS =
{
  certificate_type: :certificate_type,
  expiry_date: :expiry_date
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ ConnectionSAMLCertificateRenewedDataCertificate

Returns a new instance of ConnectionSAMLCertificateRenewedDataCertificate.



16
17
18
19
20
# File 'lib/workos/sso/connection_saml_certificate_renewed_data_certificate.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @certificate_type = hash[:certificate_type]
  @expiry_date = hash[:expiry_date]
end

Instance Attribute Details

#certificate_typeObject

Returns the value of attribute certificate_type.



12
13
14
# File 'lib/workos/sso/connection_saml_certificate_renewed_data_certificate.rb', line 12

def certificate_type
  @certificate_type
end

#expiry_dateObject

Returns the value of attribute expiry_date.



12
13
14
# File 'lib/workos/sso/connection_saml_certificate_renewed_data_certificate.rb', line 12

def expiry_date
  @expiry_date
end