Class: GetStream::Generated::Models::ChannelBatchUpdateResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ChannelBatchUpdateResponse
- Defined in:
- lib/getstream_ruby/generated/models/channel_batch_update_response.rb
Instance Attribute Summary collapse
- #duration ⇒ String
-
#success_channels_count ⇒ Integer
Count of channels selected for a completed synchronous database update, not an affected-row count.
-
#task_id ⇒ String
Present for asynchronous updates.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ChannelBatchUpdateResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ChannelBatchUpdateResponse
Initialize with attributes
23 24 25 26 27 28 |
# File 'lib/getstream_ruby/generated/models/channel_batch_update_response.rb', line 23 def initialize(attributes = {}) super(attributes) @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) } @success_channels_count = attributes.fetch(:success_channels_count) { attributes.fetch('success_channels_count', nil) } @task_id = attributes.fetch(:task_id) { attributes.fetch('task_id', nil) } end |
Instance Attribute Details
#duration ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/channel_batch_update_response.rb', line 14 def duration @duration end |
#success_channels_count ⇒ Integer
Returns Count of channels selected for a completed synchronous database update, not an affected-row count. Concurrent deletion may reduce the rows written. Omitted when the count is 0, which happens for a synchronous hide where none of the member users exist. task_id is absent.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/channel_batch_update_response.rb', line 17 def success_channels_count @success_channels_count end |
#task_id ⇒ String
Returns Present for asynchronous updates. Poll this task even if synchronous was requested: an older API node may have queued the update.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/channel_batch_update_response.rb', line 20 def task_id @task_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
31 32 33 34 35 36 37 |
# File 'lib/getstream_ruby/generated/models/channel_batch_update_response.rb', line 31 def self.json_field_mappings { duration: 'duration', success_channels_count: 'success_channels_count', task_id: 'task_id' } end |