Class: XTwitterScraper::Models::StyleProfile::Tweet
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, text:, author_username: nil, created_at: nil) ⇒ Object
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/x_twitter_scraper/models/style_profile.rb', line 41
class Tweet < XTwitterScraper::Internal::Type::BaseModel
required :id, String
required :text, String
optional :author_username, String, api_name: :authorUsername
optional :created_at, String, api_name: :createdAt
end
|
Instance Attribute Details
#author_username ⇒ String?
55
|
# File 'lib/x_twitter_scraper/models/style_profile.rb', line 55
optional :author_username, String, api_name: :authorUsername
|
#created_at ⇒ String?
60
|
# File 'lib/x_twitter_scraper/models/style_profile.rb', line 60
optional :created_at, String, api_name: :createdAt
|
#id ⇒ String
45
|
# File 'lib/x_twitter_scraper/models/style_profile.rb', line 45
required :id, String
|
#text ⇒ String
50
|
# File 'lib/x_twitter_scraper/models/style_profile.rb', line 50
required :text, String
|