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

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

Overview

See Also:

Defined Under Namespace

Classes: PrimaryTopic, Rule

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(id: nil, name: nil) ⇒ Object

Primary topic

Parameters:

  • id (String) (defaults to: nil)
  • name (String) (defaults to: nil)


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

Instance Attribute Details

Community banner image URL

Returns:

  • (String, nil)


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

optional :banner_url, String

#created_atString?

Community creation timestamp

Returns:

  • (String, nil)


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

optional :created_at, String

#descriptionString?

About text for the community

Returns:

  • (String, nil)


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

optional :description, String

#idString

Unique community identifier

Returns:

  • (String)


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

required :id, String

#join_policyString?

Join policy (open or restricted)

Returns:

  • (String, nil)


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

optional :join_policy, String

#member_countInteger?

Total member count

Returns:

  • (Integer, nil)


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

optional :member_count, Integer

#moderator_countInteger?

Total moderator count

Returns:

  • (Integer, nil)


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

optional :moderator_count, Integer

#nameString?

Display name of the community

Returns:

  • (String, nil)


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

optional :name, String

#primary_topicXTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic?

Primary topic



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

optional :primary_topic,
-> { XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic }

#rulesArray<XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule>?

Community rules



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

optional :rules,
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule] }