Class: XTwitterScraper::Models::SearchTweet::Place

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

Overview

See Also:

  • XTwitterScraper::Models::SearchTweet#place

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

#initializeObject



423
# File 'sig/x_twitter_scraper/models/search_tweet.rbs', line 423

def initialize: (

Instance Attribute Details

#bounding_boxHash{Symbol=>Object}?

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


525
526
527
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 525

optional :bounding_box,
XTwitterScraper::Internal::Type::HashOf[XTwitterScraper::Internal::Type::Unknown],
api_name: :boundingBox

#countryString?

Parameters:

  • (String)

Returns:

  • (String, nil)


532
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 532

optional :country, String

#country_codeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


537
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 537

optional :country_code, String, api_name: :countryCode

#full_nameString?

Parameters:

  • (String)

Returns:

  • (String, nil)


542
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 542

optional :full_name, String, api_name: :fullName

#idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


520
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 520

optional :id, String

#nameString?

Parameters:

  • (String)

Returns:

  • (String, nil)


547
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 547

optional :name, String

#place_typeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


552
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 552

optional :place_type, String, api_name: :placeType

#urlString?

Parameters:

  • (String)

Returns:

  • (String, nil)


557
# File 'lib/x_twitter_scraper/models/search_tweet.rb', line 557

optional :url, String

Instance Method Details

#to_hash::Hash[Symbol, top]

Returns:

  • (::Hash[Symbol, top])


434
# File 'sig/x_twitter_scraper/models/search_tweet.rbs', line 434

def to_hash: -> ::Hash[Symbol, top]