Class: GetStream::Generated::Models::UnfollowBatchRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/unfollow_batch_request.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_activityBoolean

Returns Whether to delete the corresponding notification activity (default: false).

Returns:

  • (Boolean)

    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_fieldsBoolean

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.

Returns:

  • (Boolean)

    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

#followsArray<FollowPair>

Returns List of follow relationships to remove.

Returns:

  • (Array<FollowPair>)

    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_mappingsObject

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