Class: GetStream::Generated::Models::UpsertUserInterestsRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::UpsertUserInterestsRequest
- Defined in:
- lib/getstream_ruby/generated/models/upsert_user_interests_request.rb
Overview
Adds or updates manually set interest tags on a user. Tags already present are updated with the supplied weight; other tags on the user are left untouched. Manually set tags are never overwritten by the reaction-based computation. A user holds at most 50 interest tags in total.
Instance Attribute Summary collapse
-
#interests ⇒ Array<UserInterestRequest>
Interest tags to add or update (1-50).
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UpsertUserInterestsRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UpsertUserInterestsRequest
Initialize with attributes
17 18 19 20 |
# File 'lib/getstream_ruby/generated/models/upsert_user_interests_request.rb', line 17 def initialize(attributes = {}) super(attributes) @interests = attributes.fetch(:interests) { attributes.fetch('interests', nil) } end |
Instance Attribute Details
#interests ⇒ Array<UserInterestRequest>
Returns Interest tags to add or update (1-50).
14 15 16 |
# File 'lib/getstream_ruby/generated/models/upsert_user_interests_request.rb', line 14 def interests @interests end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
23 24 25 26 27 |
# File 'lib/getstream_ruby/generated/models/upsert_user_interests_request.rb', line 23 def self.json_field_mappings { interests: 'interests' } end |