Class: WorkOS::DataIntegrationAccessTokenResponseWithError
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DataIntegrationAccessTokenResponseWithError
- 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
-
#active ⇒ Object
Returns the value of attribute active.
-
#error ⇒ Object
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationAccessTokenResponseWithError
constructor
A new instance of DataIntegrationAccessTokenResponseWithError.
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 |