Class: GetStream::Generated::Models::UnfollowBatchRequest
- Defined in:
- lib/getstream_ruby/generated/models/unfollow_batch_request.rb
Instance Attribute Summary collapse
-
#delete_notification_activity ⇒ Boolean
Whether to delete the corresponding notification activity (default: false).
-
#enrich_own_fields ⇒ Boolean
If true, enriches the follow’s source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership).
-
#follows ⇒ Array<FollowPair>
List of follow relationships to remove.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UnfollowBatchRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UnfollowBatchRequest
Initialize with attributes
23 24 25 26 27 28 |
# File 'lib/getstream_ruby/generated/models/unfollow_batch_request.rb', line 23 def initialize(attributes = {}) super(attributes) @follows = attributes[:follows] || attributes['follows'] @delete_notification_activity = attributes[:delete_notification_activity] || attributes['delete_notification_activity'] || nil @enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil end |
Instance Attribute Details
#delete_notification_activity ⇒ Boolean
Returns Whether to delete the corresponding notification activity (default: false).
17 18 19 |
# File 'lib/getstream_ruby/generated/models/unfollow_batch_request.rb', line 17 def delete_notification_activity @delete_notification_activity end |
#enrich_own_fields ⇒ Boolean
Returns If true, enriches the follow’s source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/unfollow_batch_request.rb', line 20 def enrich_own_fields @enrich_own_fields end |
#follows ⇒ Array<FollowPair>
Returns List of follow relationships to remove.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/unfollow_batch_request.rb', line 14 def follows @follows 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/unfollow_batch_request.rb', line 31 def self.json_field_mappings { follows: 'follows', delete_notification_activity: 'delete_notification_activity', enrich_own_fields: 'enrich_own_fields' } end |