Class: WorkOS::DataIntegrationCredentialsResponseCredential
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DataIntegrationCredentialsResponseCredential
- Defined in:
- lib/workos/pipes/data_integration_credentials_response_credential.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, auth_method: :auth_method, value: :value, expires_at: :expires_at, scopes: :scopes, missing_scopes: :missing_scopes }.freeze
Instance Attribute Summary collapse
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#missing_scopes ⇒ Object
Returns the value of attribute missing_scopes.
-
#object ⇒ Object
Returns the value of attribute object.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationCredentialsResponseCredential
constructor
A new instance of DataIntegrationCredentialsResponseCredential.
Constructor Details
#initialize(json) ⇒ DataIntegrationCredentialsResponseCredential
Returns a new instance of DataIntegrationCredentialsResponseCredential.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 24 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @auth_method = hash[:auth_method] @value = hash[:value] @expires_at = hash[:expires_at] @scopes = hash[:scopes] || [] @missing_scopes = hash[:missing_scopes] || [] end |
Instance Attribute Details
#auth_method ⇒ Object
Returns the value of attribute auth_method.
16 17 18 |
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16 def auth_method @auth_method end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
16 17 18 |
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16 def expires_at @expires_at end |
#missing_scopes ⇒ Object
Returns the value of attribute missing_scopes.
16 17 18 |
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16 def missing_scopes @missing_scopes end |
#object ⇒ Object
Returns the value of attribute object.
16 17 18 |
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16 def object @object end |
#scopes ⇒ Object
Returns the value of attribute scopes.
16 17 18 |
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16 def scopes @scopes end |
#value ⇒ Object
Returns the value of attribute value.
16 17 18 |
# File 'lib/workos/pipes/data_integration_credentials_response_credential.rb', line 16 def value @value end |