Class: WorkOS::ConnectedAccountInput

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/pipes/connected_account_input.rb

Constant Summary collapse

HASH_ATTRS =
{
  account_display_name: :account_display_name,
  account_identifier: :account_identifier,
  access_token: :access_token,
  refresh_token: :refresh_token,
  expires_at: :expires_at,
  scopes: :scopes,
  state: :state
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ConnectedAccountInput

Returns a new instance of ConnectedAccountInput.



26
27
28
29
30
31
32
33
34
35
# File 'lib/workos/pipes/connected_account_input.rb', line 26

def initialize(json)
  hash = self.class.normalize(json)
  @account_display_name = hash[:account_display_name]
  @account_identifier = hash[:account_identifier]
  @access_token = hash[:access_token]
  @refresh_token = hash[:refresh_token]
  @expires_at = hash[:expires_at]
  @scopes = hash[:scopes] || []
  @state = hash[:state]
end

Instance Attribute Details

#access_token ⇒ Object

Returns the value of attribute access_token.



17
18
19
# File 'lib/workos/pipes/connected_account_input.rb', line 17

def access_token
  @access_token
end

#account_display_name ⇒ Object

Returns the value of attribute account_display_name.



17
18
19
# File 'lib/workos/pipes/connected_account_input.rb', line 17

def 
  @account_display_name
end

#account_identifier ⇒ Object

Returns the value of attribute account_identifier.



17
18
19
# File 'lib/workos/pipes/connected_account_input.rb', line 17

def 
  @account_identifier
end

#expires_at ⇒ Object

Returns the value of attribute expires_at.



17
18
19
# File 'lib/workos/pipes/connected_account_input.rb', line 17

def expires_at
  @expires_at
end

#refresh_token ⇒ Object

Returns the value of attribute refresh_token.



17
18
19
# File 'lib/workos/pipes/connected_account_input.rb', line 17

def refresh_token
  @refresh_token
end

#scopes ⇒ Object

Returns the value of attribute scopes.



17
18
19
# File 'lib/workos/pipes/connected_account_input.rb', line 17

def scopes
  @scopes
end

#state ⇒ Object

Returns the value of attribute state.



17
18
19
# File 'lib/workos/pipes/connected_account_input.rb', line 17

def state
  @state
end