Class: XTwitterScraper::Models::ExtractionEstimateCostResponse

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

Overview

See Also:

  • XTwitterScraper::Resources::Extractions#estimate_cost

Defined Under Namespace

Modules: Source

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(allowed:, credits_available:, credits_required:, estimated_results:, source:, resolved_x_user_id: nil) ⇒ Object

Parameters:



# File 'lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb', line 37

Instance Attribute Details

#allowedBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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

required :allowed, XTwitterScraper::Internal::Type::Boolean

#credits_availableString

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb', line 15

required :credits_available, String, api_name: :creditsAvailable

#credits_requiredString

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb', line 20

required :credits_required, String, api_name: :creditsRequired

#estimated_resultsInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


25
# File 'lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb', line 25

required :estimated_results, Integer, api_name: :estimatedResults

#resolved_x_user_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


35
# File 'lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb', line 35

optional :resolved_x_user_id, String, api_name: :resolvedXUserId

#sourceSymbol, XTwitterScraper::Models::ExtractionEstimateCostResponse::Source

Parameters:

  • value (XTwitterScraper::Models::ExtractionEstimateCostResponse::source)

Returns:



30
# File 'lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb', line 30

required :source, enum: -> { XTwitterScraper::Models::ExtractionEstimateCostResponse::Source }

Instance Method Details

#to_hash{

Returns:

  • ({)


37
# File 'sig/x_twitter_scraper/models/extraction_estimate_cost_response.rbs', line 37

def to_hash: -> {