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, auth_methods: :auth_methods, ownership: :ownership, created_at: :created_at, updated_at: :updated_at, connected_account: :connected_account }.freeze
Instance Attribute Summary collapse
-
#auth_methods ⇒ Object
Returns the value of attribute auth_methods.
-
#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.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 38 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] || [] @auth_methods = hash[:auth_methods] || [] @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
#auth_methods ⇒ Object
Returns the value of attribute auth_methods.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def auth_methods @auth_methods end |
#connected_account ⇒ Object
Returns the value of attribute connected_account.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def connected_account @connected_account end |
#created_at ⇒ Object
Returns the value of attribute created_at.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def created_at @created_at end |
#credentials_type ⇒ Object
Returns the value of attribute credentials_type.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def credentials_type @credentials_type end |
#description ⇒ Object
Returns the value of attribute description.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def id @id end |
#integration_type ⇒ Object
Returns the value of attribute integration_type.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def integration_type @integration_type end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def object @object end |
#ownership ⇒ Object
Returns the value of attribute ownership.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def ownership @ownership end |
#scopes ⇒ Object
Returns the value of attribute scopes.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def scopes @scopes end |
#slug ⇒ Object
Returns the value of attribute slug.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def slug @slug end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
23 24 25 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 23 def updated_at @updated_at end |