Class: XTwitterScraper::Models::X::AccountCreateResponse::SanitizedXAccount
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/x_twitter_scraper/models/x/account_create_response.rb,
sig/x_twitter_scraper/models/x/account_create_response.rbs
Defined Under Namespace
Modules: Health
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, health:, x_user_id:, x_username:, status: :active) ⇒ Object
Sanitized X account summary returned by connect and reauth.
|
# File 'lib/x_twitter_scraper/models/x/account_create_response.rb', line 57
|
Instance Attribute Details
#created_at ⇒ Time
34
|
# File 'lib/x_twitter_scraper/models/x/account_create_response.rb', line 34
required :created_at, Time, api_name: :createdAt
|
39
40
|
# File 'lib/x_twitter_scraper/models/x/account_create_response.rb', line 39
required :health,
enum: -> { XTwitterScraper::Models::X::AccountCreateResponse::SanitizedXAccount::Health }
|
#id ⇒ String
29
|
# File 'lib/x_twitter_scraper/models/x/account_create_response.rb', line 29
required :id, String
|
#status ⇒ Symbol, :active
45
|
# File 'lib/x_twitter_scraper/models/x/account_create_response.rb', line 45
required :status, const: :active
|
#x_user_id ⇒ String
50
|
# File 'lib/x_twitter_scraper/models/x/account_create_response.rb', line 50
required :x_user_id, String, api_name: :xUserId
|
#x_username ⇒ String
55
|
# File 'lib/x_twitter_scraper/models/x/account_create_response.rb', line 55
required :x_username, String, api_name: :xUsername
|
Instance Method Details
#to_hash ⇒ {
48
|
# File 'sig/x_twitter_scraper/models/x/account_create_response.rbs', line 48
def to_hash: -> {
|