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,
sig/x_twitter_scraper/models/x/community_retrieve_info_response.rbs

Overview

See Also:

  • XTwitterScraper::Models::X::CommunityRetrieveInfoResponse#community

Defined Under Namespace

Classes: Creator, 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 110

Instance Attribute Details

Community banner image URL

Parameters:

  • (String)

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

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :created_at, String

#creatorXTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator?



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

optional :creator, -> { XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator }

#descriptionString?

About text for the community

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :description, String

#idString

Unique community identifier

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#invites_policyString?

Invitation policy

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :invites_policy, String

#is_memberBoolean?

Whether the authenticated viewer is a member

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :is_member, XTwitterScraper::Internal::Type::Boolean

#is_nsfwBoolean?

Whether the community is marked sensitive

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :is_nsfw, XTwitterScraper::Internal::Type::Boolean

#join_policyString?

Join policy (open or restricted)

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :join_policy, String

#member_countInteger?

Total member count

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

optional :member_count, Integer

#moderator_countInteger?

Total moderator count

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

optional :moderator_count, Integer

#nameString?

Display name of the community

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :name, String

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

Primary topic



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

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

#roleString?

Authenticated viewer's community role

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :role, String

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

Community rules



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

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

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {