Class: XTwitterScraper::Models::AccountRetrieveResponse::CreditInfo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/x_twitter_scraper/models/account_retrieve_response.rb,
sig/x_twitter_scraper/models/account_retrieve_response.rbs

Overview

See Also:

  • XTwitterScraper::Models::AccountRetrieveResponse#credit_info

Instance Attribute 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(auto_topup_amount_dollars:, auto_topup_enabled:, auto_topup_threshold:, balance:, lifetime_purchased:, lifetime_used:) ⇒ Object

Parameters:

  • auto_topup_amount_dollars (Float)

    Dollar amount charged when automatic top-up runs.

  • auto_topup_enabled (Boolean)
  • auto_topup_threshold (String)

    Bigint string threshold that triggers automatic top-up when enabled.

  • balance (String)

    Bigint string to preserve precision above Number.MAX_SAFE_INTEGER.

  • lifetime_purchased (String)

    Total purchased credits as a bigint string.

  • lifetime_used (String)

    Total consumed credits as a bigint string.



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

Instance Attribute Details

#auto_topup_amount_dollarsFloat

Dollar amount charged when automatic top-up runs.

Parameters:

  • value (Float)

Returns:

  • (Float)


139
# File 'lib/x_twitter_scraper/models/account_retrieve_response.rb', line 139

required :auto_topup_amount_dollars, Float, api_name: :autoTopupAmountDollars

#auto_topup_enabledBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


144
# File 'lib/x_twitter_scraper/models/account_retrieve_response.rb', line 144

required :auto_topup_enabled, XTwitterScraper::Internal::Type::Boolean, api_name: :autoTopupEnabled

#auto_topup_thresholdString

Bigint string threshold that triggers automatic top-up when enabled.

Parameters:

  • value (String)

Returns:

  • (String)


150
# File 'lib/x_twitter_scraper/models/account_retrieve_response.rb', line 150

required :auto_topup_threshold, String, api_name: :autoTopupThreshold

#balanceString

Bigint string to preserve precision above Number.MAX_SAFE_INTEGER.

Parameters:

  • value (String)

Returns:

  • (String)


156
# File 'lib/x_twitter_scraper/models/account_retrieve_response.rb', line 156

required :balance, String

#lifetime_purchasedString

Total purchased credits as a bigint string.

Parameters:

  • value (String)

Returns:

  • (String)


162
# File 'lib/x_twitter_scraper/models/account_retrieve_response.rb', line 162

required :lifetime_purchased, String, api_name: :lifetimePurchased

#lifetime_usedString

Total consumed credits as a bigint string.

Parameters:

  • value (String)

Returns:

  • (String)


168
# File 'lib/x_twitter_scraper/models/account_retrieve_response.rb', line 168

required :lifetime_used, String, api_name: :lifetimeUsed

Instance Method Details

#to_hash{

Returns:

  • ({)


140
# File 'sig/x_twitter_scraper/models/account_retrieve_response.rbs', line 140

def to_hash: -> {