Class: WorkOS::DataIntegrationAccessTokenResponseWithAccessToken

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/data_integration_access_token_response_with_access_token.rb

Constant Summary collapse

HASH_ATTRS =
{
  active: :active,
  access_token: :access_token
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationAccessTokenResponseWithAccessToken

Returns a new instance of DataIntegrationAccessTokenResponseWithAccessToken.



16
17
18
19
20
# File 'lib/workos/shared/data_integration_access_token_response_with_access_token.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @active = hash[:active]
  @access_token = hash[:access_token] ? WorkOS::DataIntegrationAccessTokenResponseWithAccessTokenAccessToken.new(hash[:access_token]) : nil
end

Instance Attribute Details

#access_token ⇒ Object

Returns the value of attribute access_token.



12
13
14
# File 'lib/workos/shared/data_integration_access_token_response_with_access_token.rb', line 12

def access_token
  @access_token
end

#active ⇒ Object

Returns the value of attribute active.



12
13
14
# File 'lib/workos/shared/data_integration_access_token_response_with_access_token.rb', line 12

def active
  @active
end