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, connection_owner: :connection_owner, ownership: :ownership, created_at: :created_at, updated_at: :updated_at, connected_account: :connected_account, connected_accounts: :connected_accounts }.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.
-
#connected_accounts ⇒ Object
Returns the value of attribute connected_accounts.
-
#connection_owner ⇒ Object
Returns the value of attribute connection_owner.
-
#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
deprecated
Deprecated.
Use
connection_ownerinstead. Legacy spelling of the same value:userland_usercorresponds toconnection_owner: "user"andorganizationtoconnection_owner: "organization". -
#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.
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationsListResponseData
constructor
A new instance of DataIntegrationsListResponseData.
Constructor Details
#initialize(json) ⇒ DataIntegrationsListResponseData
Returns a new instance of DataIntegrationsListResponseData.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 51 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] || [] @connection_owner = hash[:connection_owner] @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 @connected_accounts = (hash[:connected_accounts] || []).map { |item| item ? WorkOS::DataIntegrationsListResponseDataConnectedAccount.new(item) : nil } end |
Instance Attribute Details
#auth_methods ⇒ Object
Returns the value of attribute auth_methods.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def auth_methods @auth_methods end |
#connected_account ⇒ Object
Returns the value of attribute connected_account.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def connected_account @connected_account end |
#connected_accounts ⇒ Object
Returns the value of attribute connected_accounts.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def connected_accounts @connected_accounts end |
#connection_owner ⇒ Object
Returns the value of attribute connection_owner.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def connection_owner @connection_owner end |
#created_at ⇒ Object
Returns the value of attribute created_at.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def created_at @created_at end |
#credentials_type ⇒ Object
Returns the value of attribute credentials_type.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def credentials_type @credentials_type end |
#description ⇒ Object
Returns the value of attribute description.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def id @id end |
#integration_type ⇒ Object
Returns the value of attribute integration_type.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def integration_type @integration_type end |
#name ⇒ Object
Returns the value of attribute name.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def object @object end |
#ownership ⇒ Object
Use connection_owner instead. Legacy spelling of the same value: userland_user corresponds to connection_owner: "user" and organization to connection_owner: "organization".
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 attr_accessor \ :object, :id, :name, :description, :slug, :integration_type, :credentials_type, :scopes, :auth_methods, :connection_owner, :created_at, :updated_at, :connected_account, :connected_accounts |
#scopes ⇒ Object
Returns the value of attribute scopes.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def scopes @scopes end |
#slug ⇒ Object
Returns the value of attribute slug.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def slug @slug end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
28 29 30 |
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 28 def updated_at @updated_at end |