Class: WorkOS::PipeConnectedAccount
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::PipeConnectedAccount
- Defined in:
- lib/workos/shared/pipe_connected_account.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, connection_role: :connection_role, account_identifier: :account_identifier, account_display_name: :account_display_name, data_integration_id: :data_integration_id, provider_slug: :provider_slug, user_id: :user_id, organization_id: :organization_id, scopes: :scopes, auth_method: :auth_method, api_key_last_4: :api_key_last_4, state: :state, established_by_user_id: :established_by_user_id, state_reason: :state_reason, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#account_display_name ⇒ Object
Returns the value of attribute account_display_name.
-
#account_identifier ⇒ Object
Returns the value of attribute account_identifier.
-
#api_key_last_4 ⇒ Object
Returns the value of attribute api_key_last_4.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#connection_role ⇒ Object
Returns the value of attribute connection_role.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#data_integration_id ⇒ Object
Returns the value of attribute data_integration_id.
-
#established_by_user_id ⇒ Object
Returns the value of attribute established_by_user_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#provider_slug ⇒ Object
Returns the value of attribute provider_slug.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#state ⇒ Object
Returns the value of attribute state.
-
#state_reason ⇒ Object
Returns the value of attribute state_reason.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ PipeConnectedAccount
constructor
A new instance of PipeConnectedAccount.
Constructor Details
#initialize(json) ⇒ PipeConnectedAccount
Returns a new instance of PipeConnectedAccount.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 46 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @connection_role = hash[:connection_role] @account_identifier = hash[:account_identifier] @account_display_name = hash[:account_display_name] @data_integration_id = hash[:data_integration_id] @provider_slug = hash[:provider_slug] @user_id = hash[:user_id] @organization_id = hash[:organization_id] @scopes = hash[:scopes] || [] @auth_method = hash[:auth_method] @api_key_last_4 = hash[:api_key_last_4] @state = hash[:state] @established_by_user_id = hash[:established_by_user_id] @state_reason = hash[:state_reason] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#account_display_name ⇒ Object
Returns the value of attribute account_display_name.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def account_display_name @account_display_name end |
#account_identifier ⇒ Object
Returns the value of attribute account_identifier.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def account_identifier @account_identifier end |
#api_key_last_4 ⇒ Object
Returns the value of attribute api_key_last_4.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def api_key_last_4 @api_key_last_4 end |
#auth_method ⇒ Object
Returns the value of attribute auth_method.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def auth_method @auth_method end |
#connection_role ⇒ Object
Returns the value of attribute connection_role.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def connection_role @connection_role end |
#created_at ⇒ Object
Returns the value of attribute created_at.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def created_at @created_at end |
#data_integration_id ⇒ Object
Returns the value of attribute data_integration_id.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def data_integration_id @data_integration_id end |
#established_by_user_id ⇒ Object
Returns the value of attribute established_by_user_id.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def established_by_user_id @established_by_user_id end |
#id ⇒ Object
Returns the value of attribute id.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def id @id end |
#object ⇒ Object
Returns the value of attribute object.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def organization_id @organization_id end |
#provider_slug ⇒ Object
Returns the value of attribute provider_slug.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def provider_slug @provider_slug end |
#scopes ⇒ Object
Returns the value of attribute scopes.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def scopes @scopes end |
#state ⇒ Object
Returns the value of attribute state.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def state @state end |
#state_reason ⇒ Object
Returns the value of attribute state_reason.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def state_reason @state_reason end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def updated_at @updated_at end |
#user_id ⇒ Object
Returns the value of attribute user_id.
27 28 29 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 27 def user_id @user_id end |