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 46
|
Instance Attribute Details
#created_at ⇒ Time
15
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 15
required :created_at, Time, api_name: :createdAt
|
Array of event types to subscribe to.
21
22
23
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 21
required :event_types,
-> { XTwitterScraper::Internal::Type::ArrayOf[enum: XTwitterScraper::EventType] },
api_name: :eventTypes
|
#id ⇒ String
10
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 10
required :id, String
|
#is_active ⇒ Boolean
28
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 28
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.
34
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 34
required :next_billing_at, Time, api_name: :nextBillingAt
|
#username ⇒ String
39
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 39
required :username, String
|
#x_user_id ⇒ String
44
|
# File 'lib/x_twitter_scraper/models/monitor_create_response.rb', line 44
required :x_user_id, String, api_name: :xUserId
|
Instance Method Details
#to_hash ⇒ {
39
|
# File 'sig/x_twitter_scraper/models/monitor_create_response.rbs', line 39
def to_hash: -> {
|