Class: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb,
sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs

Defined Under Namespace

Modules: Object, Status

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, expires_at:, message:, object:, status:, username:) ⇒ Object

Resumable account connection challenge. Submit the email code to finish the same connection attempt.



# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 153

Instance Attribute Details

#expires_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


129
# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 129

required :expires_at, Time, api_name: :expiresAt

#idString

Parameters:

  • value (String)

Returns:

  • (String)


124
# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 124

required :id, String

#messageString

Parameters:

  • value (String)

Returns:

  • (String)


134
# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 134

required :message, String

#objectSymbol, XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::Object

Parameters:

  • value (XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::object)

Returns:



139
140
# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 139

required :object,
enum: -> { XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::Object }

#statusSymbol, XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::Status

Parameters:

  • value (XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::status)

Returns:



145
146
# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 145

required :status,
enum: -> { XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::Status }

#usernameString

Parameters:

  • value (String)

Returns:

  • (String)


151
# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 151

required :username, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb', line 170

Instance Method Details

#to_hash{

Returns:

  • ({)


148
# File 'sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs', line 148

def to_hash: -> {