Module: XTwitterScraper::Models::DraftCreateParams::Goal

Extended by:
Internal::Type::Enum
Defined in:
lib/x_twitter_scraper/models/draft_create_params.rb,
sig/x_twitter_scraper/models/draft_create_params.rbs

Constant Summary collapse

ENGAGEMENT =

Returns:

  • (:engagement)
:engagement
FOLLOWERS =

Returns:

  • (:followers)
:followers
AUTHORITY =

Returns:

  • (:authority)
:authority
CONVERSATION =

Returns:

  • (:conversation)
:conversation

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/x_twitter_scraper/models/draft_create_params.rb', line 39

Instance Method Details

#initialize(text:, goal: nil, topic: nil, request_options: {}) ⇒ Object

Parameters:



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/x_twitter_scraper/models/draft_create_params.rb', line 31

module Goal
  extend XTwitterScraper::Internal::Type::Enum

  ENGAGEMENT = :engagement
  FOLLOWERS = :followers
  AUTHORITY = :authority
  CONVERSATION = :conversation

  # @!method self.values
  #   @return [Array<Symbol>]
end

#self?.values::Array[XTwitterScraper::Models::DraftCreateParams::goal]

Returns:

  • (::Array[XTwitterScraper::Models::DraftCreateParams::goal])


51
# File 'sig/x_twitter_scraper/models/draft_create_params.rbs', line 51

def self?.values: -> ::Array[XTwitterScraper::Models::DraftCreateParams::goal]