Class: WorkOS::ApiKeyUpdatedDataPreviousAttribute

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

Constant Summary collapse

HASH_ATTRS =
{
  expires_at: :expires_at
}.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) ⇒ ApiKeyUpdatedDataPreviousAttribute

Returns a new instance of ApiKeyUpdatedDataPreviousAttribute.



13
14
15
16
# File 'lib/workos/api_keys/api_key_updated_data_previous_attribute.rb', line 13

def initialize(json)
  hash = self.class.normalize(json)
  @expires_at = hash[:expires_at]
end

Instance Attribute Details

#expires_atObject

Returns the value of attribute expires_at.



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

def expires_at
  @expires_at
end