Class: XTwitterScraper::Models::StyleGetPerformanceResponse::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:, created_at: nil, like_count: nil, reply_count: nil, retweet_count: nil, view_count: nil) ⇒ Object
28
29
30
31
32
33
34
35
36
37
38
39
40
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
68
69
70
71
72
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 28
class Tweet < XTwitterScraper::Internal::Type::BaseModel
required :id, String
required :text, String
optional :created_at, String, api_name: :createdAt
optional :like_count, Integer, api_name: :likeCount
optional :reply_count, Integer, api_name: :replyCount
optional :retweet_count, Integer, api_name: :retweetCount
optional :view_count, Integer, api_name: :viewCount
end
|
Instance Attribute Details
#created_at ⇒ String?
42
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 42
optional :created_at, String, api_name: :createdAt
|
#id ⇒ String
32
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 32
required :id, String
|
#like_count ⇒ Integer?
47
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 47
optional :like_count, Integer, api_name: :likeCount
|
#reply_count ⇒ Integer?
52
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 52
optional :reply_count, Integer, api_name: :replyCount
|
57
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 57
optional :retweet_count, Integer, api_name: :retweetCount
|
#text ⇒ String
37
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 37
required :text, String
|
#view_count ⇒ Integer?
62
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 62
optional :view_count, Integer, api_name: :viewCount
|