Class: WorkOS::CreateConnectionKeyPair

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

Constant Summary collapse

HASH_ATTRS =
{
  key: :key,
  cert: :cert
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CreateConnectionKeyPair

Returns a new instance of CreateConnectionKeyPair.



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

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

Instance Attribute Details

#certObject

Returns the value of attribute cert.



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

def cert
  @cert
end

#keyObject

Returns the value of attribute key.



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

def key
  @key
end