Class: XTwitterScraper::Models::X::Users::FollowDeleteAllResponse::Billing

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

Overview

See Also:

  • XTwitterScraper::Models::X::Users::FollowDeleteAllResponse#billing

Defined Under Namespace

Modules: Status

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(charged:, charged_credits:, planned_credits:, status:) ⇒ Object

plannedCredits is the approved maximum. chargedCredits comes from the settled credit ledger. Pending or failed writes are not charged.

Parameters:



# File 'lib/x_twitter_scraper/models/x/users/follow_delete_all_response.rb', line 414

Instance Attribute Details

#chargedBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


397
# File 'lib/x_twitter_scraper/models/x/users/follow_delete_all_response.rb', line 397

required :charged, XTwitterScraper::Internal::Type::Boolean

#charged_creditsString

Parameters:

  • value (String)

Returns:

  • (String)


402
# File 'lib/x_twitter_scraper/models/x/users/follow_delete_all_response.rb', line 402

required :charged_credits, String, api_name: :chargedCredits

#planned_creditsString

Parameters:

  • value (String)

Returns:

  • (String)


407
# File 'lib/x_twitter_scraper/models/x/users/follow_delete_all_response.rb', line 407

required :planned_credits, String, api_name: :plannedCredits

#statusSymbol, XTwitterScraper::Models::X::Users::FollowDeleteAllResponse::Billing::Status

Parameters:

  • value (XTwitterScraper::Models::X::Users::FollowDeleteAllResponse::Billing::status)

Returns:



412
# File 'lib/x_twitter_scraper/models/x/users/follow_delete_all_response.rb', line 412

required :status, enum: -> { XTwitterScraper::Models::X::Users::FollowDeleteAllResponse::Billing::Status }

Instance Method Details

#to_hash{

Returns:

  • ({)


360
# File 'sig/x_twitter_scraper/models/x/users/follow_delete_all_response.rbs', line 360

def to_hash: -> {