Class: XTwitterScraper::Models::ExtractionEstimateCostResponse

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

Overview

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:, estimated_results:, projected_percent:, source:, usage_percent:) ⇒ Object

Parameters:

  • allowed (Boolean)
  • estimated_results (Integer)
  • projected_percent (Float)
  • source (String)
  • usage_percent (Float)


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

Instance Attribute Details

#allowedBoolean

Returns:

  • (Boolean)


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

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

#estimated_resultsInteger

Returns:

  • (Integer)


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

required :estimated_results, Integer, api_name: :estimatedResults

#projected_percentFloat

Returns:

  • (Float)


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

required :projected_percent, Float, api_name: :projectedPercent

#sourceString

Returns:

  • (String)


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

required :source, String

#usage_percentFloat

Returns:

  • (Float)


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

required :usage_percent, Float, api_name: :usagePercent