Class: WorkOS::SAMLSpEncryptionCertificate

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

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  value: :value,
  not_before: :not_before,
  not_after: :not_after,
  created_at: :created_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SAMLSpEncryptionCertificate

Returns a new instance of SAMLSpEncryptionCertificate.



24
25
26
27
28
29
30
31
32
# File 'lib/workos/sso/saml_sp_encryption_certificate.rb', line 24

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @value = hash[:value]
  @not_before = hash[:not_before]
  @not_after = hash[:not_after]
  @created_at = hash[:created_at]
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



16
17
18
# File 'lib/workos/sso/saml_sp_encryption_certificate.rb', line 16

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



16
17
18
# File 'lib/workos/sso/saml_sp_encryption_certificate.rb', line 16

def id
  @id
end

#not_afterObject

Returns the value of attribute not_after.



16
17
18
# File 'lib/workos/sso/saml_sp_encryption_certificate.rb', line 16

def not_after
  @not_after
end

#not_beforeObject

Returns the value of attribute not_before.



16
17
18
# File 'lib/workos/sso/saml_sp_encryption_certificate.rb', line 16

def not_before
  @not_before
end

#objectObject

Returns the value of attribute object.



16
17
18
# File 'lib/workos/sso/saml_sp_encryption_certificate.rb', line 16

def object
  @object
end

#valueObject

Returns the value of attribute value.



16
17
18
# File 'lib/workos/sso/saml_sp_encryption_certificate.rb', line 16

def value
  @value
end