Class: XTwitterScraper::Models::MonitorCreateResponse
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/x_twitter_scraper/models/monitor_create_response.rb,
sig/x_twitter_scraper/models/monitor_create_response.rbs
Overview
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:, created_at:, event_types:, is_active:, next_billing_at:, username:, x_user_id:) ⇒ Object
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 50
|
Instance Attribute Details
#created_at ⇒ Time
19
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 19
required :created_at, Time, api_name: :createdAt
|
Array of event types to subscribe to.
25
26
27
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 25
required :event_types,
-> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
api_name: :eventTypes
|
#id ⇒ String
14
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 14
required :id, String
|
#is_active ⇒ Boolean
32
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 32
required :is_active, XTwitterScraper::Internal::Type::Boolean, api_name: :isActive
|
#next_billing_at ⇒ Time
Next hourly credit charge time. New active monitors are due immediately.
38
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 38
required :next_billing_at, Time, api_name: :nextBillingAt
|
#username ⇒ String
43
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 43
required :username, String
|
#x_user_id ⇒ String
48
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 48
required :x_user_id, String, api_name: :xUserId
|
Instance Method Details
#to_hash ⇒ {
43
|
# File 'sig/x_twitter_scraper/models/monitor_create_response.rbs', line 43
def to_hash: -> {
|