Class: WorkOS::ApiKeyValidationResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ApiKeyValidationResponse
- Defined in:
- lib/workos/api_keys/api_key_validation_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ api_key: :api_key }.freeze
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ApiKeyValidationResponse
constructor
A new instance of ApiKeyValidationResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ ApiKeyValidationResponse
Returns a new instance of ApiKeyValidationResponse.
13 14 15 16 |
# File 'lib/workos/api_keys/api_key_validation_response.rb', line 13 def initialize(json) hash = self.class.normalize(json) @api_key = hash[:api_key] ? WorkOS::ApiKey.new(hash[:api_key]) : nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/workos/api_keys/api_key_validation_response.rb', line 11 def api_key @api_key end |