Class: XTwitterScraper::Models::XGetArticleResponse::Author

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

Overview

See Also:

  • XTwitterScraper::Models::XGetArticleResponse#author

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:, name:, username:, can_dm: nil, created_at: nil, description: nil, favourites_count: nil, followers_count: nil, following_count: nil, is_blue_verified: nil, is_translator: nil, is_verified: nil, location: nil, media_count: nil, profile_banner_url: nil, profile_picture: nil, protected: nil, statuses_count: nil, url: nil) ⇒ Object

X Article author profile fields returned when available.

Parameters:

  • id (String)
  • name (String)
  • username (String)
  • can_dm (Boolean) (defaults to: nil)
  • created_at (String) (defaults to: nil)
  • description (String) (defaults to: nil)
  • favourites_count (Integer) (defaults to: nil)
  • followers_count (Integer) (defaults to: nil)
  • following_count (Integer) (defaults to: nil)
  • is_blue_verified (Boolean) (defaults to: nil)
  • is_translator (Boolean) (defaults to: nil)
  • is_verified (Boolean) (defaults to: nil)
  • location (String) (defaults to: nil)
  • media_count (Integer) (defaults to: nil)
  • profile_banner_url (String) (defaults to: nil)
  • profile_picture (String) (defaults to: nil)
  • protected (Boolean) (defaults to: nil)
  • statuses_count (Integer) (defaults to: nil)
  • url (String) (defaults to: nil)


# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 282

Instance Attribute Details

#can_dmBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


205
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 205

optional :can_dm, XTwitterScraper::Internal::Type::Boolean, api_name: :canDm

#created_atString?

Parameters:

  • (String)

Returns:

  • (String, nil)


210
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 210

optional :created_at, String, api_name: :createdAt

#descriptionString?

Parameters:

  • (String)

Returns:

  • (String, nil)


215
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 215

optional :description, String

#favourites_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


220
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 220

optional :favourites_count, Integer, api_name: :favouritesCount

#followers_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


225
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 225

optional :followers_count, Integer, api_name: :followersCount

#following_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


230
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 230

optional :following_count, Integer, api_name: :followingCount

#idString

Parameters:

  • value (String)

Returns:

  • (String)


190
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 190

required :id, String

#is_blue_verifiedBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


235
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 235

optional :is_blue_verified, XTwitterScraper::Internal::Type::Boolean, api_name: :isBlueVerified

#is_translatorBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


240
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 240

optional :is_translator, XTwitterScraper::Internal::Type::Boolean, api_name: :isTranslator

#is_verifiedBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


245
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 245

optional :is_verified, XTwitterScraper::Internal::Type::Boolean, api_name: :isVerified

#locationString?

Parameters:

  • (String)

Returns:

  • (String, nil)


250
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 250

optional :location, String

#media_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


255
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 255

optional :media_count, Integer, api_name: :mediaCount

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


195
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 195

required :name, String

#profile_banner_urlString?

Parameters:

  • (String)

Returns:

  • (String, nil)


260
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 260

optional :profile_banner_url, String, api_name: :profileBannerUrl

#profile_pictureString?

Parameters:

  • (String)

Returns:

  • (String, nil)


265
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 265

optional :profile_picture, String, api_name: :profilePicture

#protectedBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


270
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 270

optional :protected, XTwitterScraper::Internal::Type::Boolean

#statuses_countInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


275
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 275

optional :statuses_count, Integer, api_name: :statusesCount

#urlString?

Parameters:

  • (String)

Returns:

  • (String, nil)


280
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 280

optional :url, String

#usernameString

Parameters:

  • value (String)

Returns:

  • (String)


200
# File 'lib/x_twitter_scraper/models/x_get_article_response.rb', line 200

required :username, String

Instance Method Details

#to_hash{

Returns:

  • ({)


316
# File 'sig/x_twitter_scraper/models/x_get_article_response.rbs', line 316

def to_hash: -> {