Class: WorkOS::ConnectedAccount
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ConnectedAccount
- Defined in:
- lib/workos/pipes/connected_account.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, user_id: :user_id, organization_id: :organization_id, scopes: :scopes, auth_method: :auth_method, api_key_last_4: :api_key_last_4, client_id: :client_id, client_secret_last_4: :client_secret_last_4, config: :config, state: :state, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#api_key_last_4 ⇒ Object
Returns the value of attribute api_key_last_4.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret_last_4 ⇒ Object
Returns the value of attribute client_secret_last_4.
-
#config ⇒ Object
Returns the value of attribute config.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#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.
-
#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.
Instance Method Summary collapse
-
#initialize(json) ⇒ ConnectedAccount
constructor
A new instance of ConnectedAccount.
Constructor Details
#initialize(json) ⇒ ConnectedAccount
Returns a new instance of ConnectedAccount.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/workos/pipes/connected_account.rb', line 38 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @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] @client_id = hash[:client_id] @client_secret_last_4 = hash[:client_secret_last_4] @config = hash[:config] || {} @state = hash[:state] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#api_key_last_4 ⇒ Object
Returns the value of attribute api_key_last_4.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def api_key_last_4 @api_key_last_4 end |
#auth_method ⇒ Object
Returns the value of attribute auth_method.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def auth_method @auth_method end |
#client_id ⇒ Object
Returns the value of attribute client_id.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def client_id @client_id end |
#client_secret_last_4 ⇒ Object
Returns the value of attribute client_secret_last_4.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def client_secret_last_4 @client_secret_last_4 end |
#config ⇒ Object
Returns the value of attribute config.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def config @config end |
#created_at ⇒ Object
Returns the value of attribute created_at.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def id @id end |
#object ⇒ Object
Returns the value of attribute object.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def organization_id @organization_id end |
#scopes ⇒ Object
Returns the value of attribute scopes.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def scopes @scopes end |
#state ⇒ Object
Returns the value of attribute state.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def state @state end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def updated_at @updated_at end |
#user_id ⇒ Object
Returns the value of attribute user_id.
23 24 25 |
# File 'lib/workos/pipes/connected_account.rb', line 23 def user_id @user_id end |