Class: XTwitterScraper::Models::CreditRetrieveTopupStatusResponse

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

Overview

See Also:

  • XTwitterScraper::Resources::Credits#retrieve_topup_status

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(status:, amount_dollars: nil, credits: nil) ⇒ Object

Parameters:



# File 'lib/x_twitter_scraper/models/credit_retrieve_topup_status_response.rb', line 24

Instance Attribute Details

#amount_dollarsInteger?

Dollar amount requested for the top-up.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


16
# File 'lib/x_twitter_scraper/models/credit_retrieve_topup_status_response.rb', line 16

optional :amount_dollars, Integer, nil?: true

#creditsString?

Bigint string credit amount granted or pending.

Parameters:

  • (String)

Returns:

  • (String, nil)


22
# File 'lib/x_twitter_scraper/models/credit_retrieve_topup_status_response.rb', line 22

optional :credits, String

#statusSymbol, XTwitterScraper::Models::CreditRetrieveTopupStatusResponse::Status

Parameters:

  • value (XTwitterScraper::Models::CreditRetrieveTopupStatusResponse::status)

Returns:



10
# File 'lib/x_twitter_scraper/models/credit_retrieve_topup_status_response.rb', line 10

required :status, enum: -> { XTwitterScraper::Models::CreditRetrieveTopupStatusResponse::Status }

Instance Method Details

#to_hash{

Returns:

  • ({)


25
# File 'sig/x_twitter_scraper/models/credit_retrieve_topup_status_response.rbs', line 25

def to_hash: -> {