Class: WorkOS::CreateOrganizationConnectedAccount
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateOrganizationConnectedAccount
- Defined in:
- lib/workos/pipes/create_organization_connected_account.rb
Constant Summary collapse
- HASH_ATTRS =
{ account_display_name: :account_display_name, account_identifier: :account_identifier, config: :config, access_token: :access_token, refresh_token: :refresh_token, expires_at: :expires_at, scopes: :scopes, state: :state, user_id: :user_id, metadata: :metadata, connection_intent: :connection_intent }.freeze
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#account_display_name ⇒ Object
Returns the value of attribute account_display_name.
-
#account_identifier ⇒ Object
Returns the value of attribute account_identifier.
-
#config ⇒ Object
Returns the value of attribute config.
-
#connection_intent ⇒ Object
Returns the value of attribute connection_intent.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#state ⇒ Object
Returns the value of attribute state.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateOrganizationConnectedAccount
constructor
A new instance of CreateOrganizationConnectedAccount.
Constructor Details
#initialize(json) ⇒ CreateOrganizationConnectedAccount
Returns a new instance of CreateOrganizationConnectedAccount.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 34 def initialize(json) hash = self.class.normalize(json) @account_display_name = hash[:account_display_name] @account_identifier = hash[:account_identifier] @config = hash[:config] || {} @access_token = hash[:access_token] @refresh_token = hash[:refresh_token] @expires_at = hash[:expires_at] @scopes = hash[:scopes] || [] @state = hash[:state] @user_id = hash[:user_id] @metadata = hash[:metadata] || {} @connection_intent = hash[:connection_intent] end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def access_token @access_token end |
#account_display_name ⇒ Object
Returns the value of attribute account_display_name.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def account_display_name @account_display_name end |
#account_identifier ⇒ Object
Returns the value of attribute account_identifier.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def account_identifier @account_identifier end |
#config ⇒ Object
Returns the value of attribute config.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def config @config end |
#connection_intent ⇒ Object
Returns the value of attribute connection_intent.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def connection_intent @connection_intent end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def expires_at @expires_at end |
#metadata ⇒ Object
Returns the value of attribute metadata.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def @metadata end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def refresh_token @refresh_token end |
#scopes ⇒ Object
Returns the value of attribute scopes.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def scopes @scopes end |
#state ⇒ Object
Returns the value of attribute state.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def state @state end |
#user_id ⇒ Object
Returns the value of attribute user_id.
21 22 23 |
# File 'lib/workos/pipes/create_organization_connected_account.rb', line 21 def user_id @user_id end |