Class: WorkOS::CreateConnectionKeyPair
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateConnectionKeyPair
- Defined in:
- lib/workos/sso/create_connection_key_pair.rb
Constant Summary collapse
- HASH_ATTRS =
{ key: :key, cert: :cert }.freeze
Instance Attribute Summary collapse
-
#cert ⇒ Object
Returns the value of attribute cert.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateConnectionKeyPair
constructor
A new instance of CreateConnectionKeyPair.
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
#cert ⇒ Object
Returns the value of attribute cert.
12 13 14 |
# File 'lib/workos/sso/create_connection_key_pair.rb', line 12 def cert @cert end |
#key ⇒ Object
Returns the value of attribute key.
12 13 14 |
# File 'lib/workos/sso/create_connection_key_pair.rb', line 12 def key @key end |