Class: XTwitterScraper::Models::XGetNotificationsResponse::Notification
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:, message: nil, timestamp: nil, type: 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
|
# File 'lib/x_twitter_scraper/models/x_get_notifications_response.rb', line 28
class Notification < XTwitterScraper::Internal::Type::BaseModel
required :id, String
optional :message, String
optional :timestamp, String
optional :type, String
end
|
Instance Attribute Details
#id ⇒ String
32
|
# File 'lib/x_twitter_scraper/models/x_get_notifications_response.rb', line 32
required :id, String
|
#message ⇒ String?
37
|
# File 'lib/x_twitter_scraper/models/x_get_notifications_response.rb', line 37
optional :message, String
|
#timestamp ⇒ String?
42
|
# File 'lib/x_twitter_scraper/models/x_get_notifications_response.rb', line 42
optional :timestamp, String
|
#type ⇒ String?
47
|
# File 'lib/x_twitter_scraper/models/x_get_notifications_response.rb', line 47
optional :type, String
|