Class: WorkOS::DataIntegrationAccessTokenResponseWithError

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationAccessTokenResponseWithError

Returns a new instance of DataIntegrationAccessTokenResponseWithError.



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

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

Instance Attribute Details

#active ⇒ Object

Returns the value of attribute active.



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

def active
  @active
end

#error ⇒ Object

Returns the value of attribute error.



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

def error
  @error
end