Class: WorkOS::ApiKeyInstallation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ApiKeyInstallation
- Defined in:
- lib/workos/pipes/api_key_installation.rb
Constant Summary collapse
- HASH_ATTRS =
{ secret: :secret, user_id: :user_id, organization_id: :organization_id }.freeze
Instance Attribute Summary collapse
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ ApiKeyInstallation
constructor
A new instance of ApiKeyInstallation.
Constructor Details
#initialize(json) ⇒ ApiKeyInstallation
Returns a new instance of ApiKeyInstallation.
18 19 20 21 22 23 |
# File 'lib/workos/pipes/api_key_installation.rb', line 18 def initialize(json) hash = self.class.normalize(json) @secret = hash[:secret] @user_id = hash[:user_id] @organization_id = hash[:organization_id] end |
Instance Attribute Details
#organization_id ⇒ Object
Returns the value of attribute organization_id.
13 14 15 |
# File 'lib/workos/pipes/api_key_installation.rb', line 13 def organization_id @organization_id end |
#secret ⇒ Object
Returns the value of attribute secret.
13 14 15 |
# File 'lib/workos/pipes/api_key_installation.rb', line 13 def secret @secret end |
#user_id ⇒ Object
Returns the value of attribute user_id.
13 14 15 |
# File 'lib/workos/pipes/api_key_installation.rb', line 13 def user_id @user_id end |