Class: WorkOS::ConnectionSAMLCertificateRenewedData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/sso/connection_saml_certificate_renewed_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  connection: :connection,
  certificate: :certificate,
  renewed_at: :renewed_at
}.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) ⇒ ConnectionSAMLCertificateRenewedData

Returns a new instance of ConnectionSAMLCertificateRenewedData.



18
19
20
21
22
23
# File 'lib/workos/sso/connection_saml_certificate_renewed_data.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @connection = hash[:connection] ? WorkOS::ConnectionSAMLCertificateRenewedDataConnection.new(hash[:connection]) : nil
  @certificate = hash[:certificate] ? WorkOS::ConnectionSAMLCertificateRenewedDataCertificate.new(hash[:certificate]) : nil
  @renewed_at = hash[:renewed_at]
end

Instance Attribute Details

#certificateObject

Returns the value of attribute certificate.



13
14
15
# File 'lib/workos/sso/connection_saml_certificate_renewed_data.rb', line 13

def certificate
  @certificate
end

#connectionObject

Returns the value of attribute connection.



13
14
15
# File 'lib/workos/sso/connection_saml_certificate_renewed_data.rb', line 13

def connection
  @connection
end

#renewed_atObject

Returns the value of attribute renewed_at.



13
14
15
# File 'lib/workos/sso/connection_saml_certificate_renewed_data.rb', line 13

def renewed_at
  @renewed_at
end