Class: GetStream::Generated::Models::UpdateActivityPartialRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/update_activity_partial_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 = {}) ⇒ UpdateActivityPartialRequest

Initialize with attributes



29
30
31
32
33
34
35
36
# File 'lib/getstream_ruby/generated/models/update_activity_partial_request.rb', line 29

def initialize(attributes = {})
  super(attributes)
  @handle_mention_notifications = attributes[:handle_mention_notifications] || attributes['handle_mention_notifications'] || nil
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
  @unset = attributes[:unset] || attributes['unset'] || nil
  @set = attributes[:set] || attributes['set'] || nil
  @user = attributes[:user] || attributes['user'] || nil
end

Instance Attribute Details

#handle_mention_notificationsBoolean

Returns If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned.

Returns:

  • (Boolean)

    If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned



14
15
16
# File 'lib/getstream_ruby/generated/models/update_activity_partial_request.rb', line 14

def handle_mention_notifications
  @handle_mention_notifications
end

#setObject

Returns Map of field names to new values. Supported fields: ‘text’, ‘attachments’, ‘custom’, ‘visibility’, ‘visibility_tag’, ‘restrict_replies’ (values: ‘everyone’, ‘people_i_follow’, ‘nobody’), ‘location’, ‘expires_at’, ‘filter_tags’, ‘interest_tags’, ‘poll_id’, ‘feeds’, ‘mentioned_user_ids’. For custom fields, use dot-notation (e.g., ‘custom.field_name’).

Returns:

  • (Object)

    Map of field names to new values. Supported fields: ‘text’, ‘attachments’, ‘custom’, ‘visibility’, ‘visibility_tag’, ‘restrict_replies’ (values: ‘everyone’, ‘people_i_follow’, ‘nobody’), ‘location’, ‘expires_at’, ‘filter_tags’, ‘interest_tags’, ‘poll_id’, ‘feeds’, ‘mentioned_user_ids’. For custom fields, use dot-notation (e.g., ‘custom.field_name’)



23
24
25
# File 'lib/getstream_ruby/generated/models/update_activity_partial_request.rb', line 23

def set
  @set
end

#unsetArray<String>

Returns List of field names to remove. Supported fields: ‘custom’, ‘location’, ‘expires_at’, ‘filter_tags’, ‘interest_tags’, ‘attachments’, ‘poll_id’, ‘mentioned_user_ids’. Use dot-notation for nested custom fields (e.g., ‘custom.field_name’).

Returns:

  • (Array<String>)

    List of field names to remove. Supported fields: ‘custom’, ‘location’, ‘expires_at’, ‘filter_tags’, ‘interest_tags’, ‘attachments’, ‘poll_id’, ‘mentioned_user_ids’. Use dot-notation for nested custom fields (e.g., ‘custom.field_name’)



20
21
22
# File 'lib/getstream_ruby/generated/models/update_activity_partial_request.rb', line 20

def unset
  @unset
end

#userUserRequest

Returns:



26
27
28
# File 'lib/getstream_ruby/generated/models/update_activity_partial_request.rb', line 26

def user
  @user
end

#user_idString

Returns:

  • (String)


17
18
19
# File 'lib/getstream_ruby/generated/models/update_activity_partial_request.rb', line 17

def user_id
  @user_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



39
40
41
42
43
44
45
46
47
# File 'lib/getstream_ruby/generated/models/update_activity_partial_request.rb', line 39

def self.json_field_mappings
  {
    handle_mention_notifications: 'handle_mention_notifications',
    user_id: 'user_id',
    unset: 'unset',
    set: 'set',
    user: 'user'
  }
end