Class: XTwitterScraper::Models::StyleGetPerformanceResponse::Tweet
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/x_twitter_scraper/models/style_get_performance_response.rb,
sig/x_twitter_scraper/models/style_get_performance_response.rbs
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
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
73
74
75
76
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 32
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?
46
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 46
optional :created_at, String, api_name: :createdAt
|
#id ⇒ String
36
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 36
required :id, String
|
#like_count ⇒ Integer?
51
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 51
optional :like_count, Integer, api_name: :likeCount
|
#reply_count ⇒ Integer?
56
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 56
optional :reply_count, Integer, api_name: :replyCount
|
61
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 61
optional :retweet_count, Integer, api_name: :retweetCount
|
#text ⇒ String
41
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 41
required :text, String
|
#view_count ⇒ Integer?
66
|
# File 'lib/x_twitter_scraper/models/style_get_performance_response.rb', line 66
optional :view_count, Integer, api_name: :viewCount
|
Instance Method Details
#to_hash ⇒ {
79
|
# File 'sig/x_twitter_scraper/models/style_get_performance_response.rbs', line 79
def to_hash: -> {
|