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