Class: WorkOS::CreateConnectedAccount
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateConnectedAccount
- Defined in:
- lib/workos/pipes/create_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, 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.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateConnectedAccount
constructor
A new instance of CreateConnectedAccount.
Constructor Details
#initialize(json) ⇒ CreateConnectedAccount
Returns a new instance of CreateConnectedAccount.
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/workos/pipes/create_connected_account.rb', line 32 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] @metadata = hash[:metadata] || {} @connection_intent = hash[:connection_intent] end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def access_token @access_token end |
#account_display_name ⇒ Object
Returns the value of attribute account_display_name.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def account_display_name @account_display_name end |
#account_identifier ⇒ Object
Returns the value of attribute account_identifier.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def account_identifier @account_identifier end |
#config ⇒ Object
Returns the value of attribute config.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def config @config end |
#connection_intent ⇒ Object
Returns the value of attribute connection_intent.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def connection_intent @connection_intent end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def expires_at @expires_at end |
#metadata ⇒ Object
Returns the value of attribute metadata.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def @metadata end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def refresh_token @refresh_token end |
#scopes ⇒ Object
Returns the value of attribute scopes.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def scopes @scopes end |
#state ⇒ Object
Returns the value of attribute state.
20 21 22 |
# File 'lib/workos/pipes/create_connected_account.rb', line 20 def state @state end |