Class: StackOne::Models::Shared::ConnectSessionTokenAuthLinkLatestConnectionAttempt
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::ConnectSessionTokenAuthLinkLatestConnectionAttempt
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/connectsessiontokenauthlink_latest_connection_attempt.rb
Overview
The most recent connection attempt initiated against this session, if any. Use this to poll for OAuth completion: when status is "authenticated", the resulting account is at account_secure_id.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(created_at:, id:, updated_at:, account_secure_id: nil, oauth_error_code: nil, oauth_error_description: nil, status: nil) ⇒ ConnectSessionTokenAuthLinkLatestConnectionAttempt
constructor
A new instance of ConnectSessionTokenAuthLinkLatestConnectionAttempt.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(created_at:, id:, updated_at:, account_secure_id: nil, oauth_error_code: nil, oauth_error_description: nil, status: nil) ⇒ ConnectSessionTokenAuthLinkLatestConnectionAttempt
Returns a new instance of ConnectSessionTokenAuthLinkLatestConnectionAttempt.
31 32 33 34 35 36 37 38 39 |
# File 'lib/stack_one/models/shared/connectsessiontokenauthlink_latest_connection_attempt.rb', line 31 def initialize(created_at:, id:, updated_at:, account_secure_id: nil, oauth_error_code: nil, oauth_error_description: nil, status: nil) @created_at = created_at @id = id @updated_at = updated_at @account_secure_id = account_secure_id @oauth_error_code = oauth_error_code @oauth_error_description = oauth_error_description @status = status end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/stack_one/models/shared/connectsessiontokenauthlink_latest_connection_attempt.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @created_at == other.created_at return false unless @id == other.id return false unless @updated_at == other.updated_at return false unless @account_secure_id == other.account_secure_id return false unless @oauth_error_code == other.oauth_error_code return false unless @oauth_error_description == other.oauth_error_description return false unless @status == other.status true end |