Class: WorkOS::ValidateApiKey

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/api_keys/validate_api_key.rb

Constant Summary collapse

HASH_ATTRS =
{
  value: :value
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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

#valueObject

Returns the value of attribute value.



11
12
13
# File 'lib/workos/api_keys/validate_api_key.rb', line 11

def value
  @value
end