Class: WorkOS::DataIntegrationsListResponseData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DataIntegrationsListResponseData
- Defined in:
- lib/workos/pipes/data_integrations_list_response_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, name: :name, description: :description, slug: :slug, integration_type: :integration_type, credentials_type: :credentials_type, scopes: :scopes, ownership: :ownership, created_at: :created_at, updated_at: :updated_at, connected_account: :connected_account }.freeze
Instance Attribute Summary collapse
-
#connected_account ⇒ Object
Returns the value of attribute connected_account.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#credentials_type ⇒ Object
Returns the value of attribute credentials_type.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#integration_type ⇒ Object
Returns the value of attribute integration_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
-
#ownership ⇒ Object
Returns the value of attribute ownership.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationsListResponseData
constructor
A new instance of DataIntegrationsListResponseData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ DataIntegrationsListResponseData
Returns a new instance of DataIntegrationsListResponseData.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 36 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @name = hash[:name] @description = hash[:description] @slug = hash[:slug] @integration_type = hash[:integration_type] @credentials_type = hash[:credentials_type] @scopes = hash[:scopes] || [] @ownership = hash[:ownership] @created_at = hash[:created_at] @updated_at = hash[:updated_at] @connected_account = hash[:connected_account] ? WorkOS::DataIntegrationsListResponseDataConnectedAccount.new(hash[:connected_account]) : nil end |
Instance Attribute Details
#connected_account ⇒ Object
Returns the value of attribute connected_account.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def connected_account @connected_account end |
#created_at ⇒ Object
Returns the value of attribute created_at.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def created_at @created_at end |
#credentials_type ⇒ Object
Returns the value of attribute credentials_type.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def credentials_type @credentials_type end |
#description ⇒ Object
Returns the value of attribute description.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def id @id end |
#integration_type ⇒ Object
Returns the value of attribute integration_type.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def integration_type @integration_type end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def object @object end |
#ownership ⇒ Object
Returns the value of attribute ownership.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def ownership @ownership end |
#scopes ⇒ Object
Returns the value of attribute scopes.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def scopes @scopes end |
#slug ⇒ Object
Returns the value of attribute slug.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def slug @slug end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
22 23 24 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22 def updated_at @updated_at end |