Class: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic

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

Overview

See Also:

  • XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community#primary_topic

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

#initializePrimaryTopic

Returns a new instance of PrimaryTopic.

Parameters:

  • id: (String)
  • name: (String)


180
# File 'sig/x_twitter_scraper/models/x/community_retrieve_info_response.rbs', line 180

def initialize: (?id: String, ?name: String) -> void

Instance Attribute Details

#idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


177
# File 'lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb', line 177

optional :id, String

#nameString?

Parameters:

  • (String)

Returns:

  • (String, nil)


182
# File 'lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb', line 182

optional :name, String

Instance Method Details

#to_hash{ id: String, name: String }

Returns:

  • ({ id: String, name: String })


182
# File 'sig/x_twitter_scraper/models/x/community_retrieve_info_response.rbs', line 182

def to_hash: -> { id: String, name: String }