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, data_integration_id: :data_integration_id, provider_slug: :provider_slug, user_id: :user_id, organization_id: :organization_id, scopes: :scopes, state: :state, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#data_integration_id ⇒ Object
Returns the value of attribute data_integration_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.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ PipeConnectedAccount
constructor
A new instance of PipeConnectedAccount.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ PipeConnectedAccount
Returns a new instance of PipeConnectedAccount.
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 32 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @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] || [] @state = hash[:state] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def created_at @created_at end |
#data_integration_id ⇒ Object
Returns the value of attribute data_integration_id.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def data_integration_id @data_integration_id end |
#id ⇒ Object
Returns the value of attribute id.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def id @id end |
#object ⇒ Object
Returns the value of attribute object.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def organization_id @organization_id end |
#provider_slug ⇒ Object
Returns the value of attribute provider_slug.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def provider_slug @provider_slug end |
#scopes ⇒ Object
Returns the value of attribute scopes.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def scopes @scopes end |
#state ⇒ Object
Returns the value of attribute state.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def state @state end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def updated_at @updated_at end |
#user_id ⇒ Object
Returns the value of attribute user_id.
20 21 22 |
# File 'lib/workos/shared/pipe_connected_account.rb', line 20 def user_id @user_id end |