Class: GetStream::Generated::Models::UpdateFeedRequest
- Defined in:
- lib/getstream_ruby/generated/models/update_feed_request.rb
Instance Attribute Summary collapse
-
#created_by_id ⇒ String
ID of the new feed creator (owner).
-
#custom ⇒ Object
Custom data for the feed.
-
#description ⇒ String
Description of the feed.
-
#enrich_own_fields ⇒ Boolean
If true, enriches the feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership).
-
#filter_tags ⇒ Array<String>
Tags used for filtering feeds.
-
#name ⇒ String
Name of the feed.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UpdateFeedRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UpdateFeedRequest
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/update_feed_request.rb', line 32 def initialize(attributes = {}) super(attributes) @created_by_id = attributes[:created_by_id] || attributes['created_by_id'] || nil @description = attributes[:description] || attributes['description'] || nil @enrich_own_fields = attributes[:enrich_own_fields] || attributes['enrich_own_fields'] || nil @name = attributes[:name] || attributes['name'] || nil @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @custom = attributes[:custom] || attributes['custom'] || nil end |
Instance Attribute Details
#created_by_id ⇒ String
Returns ID of the new feed creator (owner).
14 15 16 |
# File 'lib/getstream_ruby/generated/models/update_feed_request.rb', line 14 def created_by_id @created_by_id end |
#custom ⇒ Object
Returns Custom data for the feed.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/update_feed_request.rb', line 29 def custom @custom end |
#description ⇒ String
Returns Description of the feed.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/update_feed_request.rb', line 17 def description @description end |
#enrich_own_fields ⇒ Boolean
Returns If true, enriches the 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/update_feed_request.rb', line 20 def enrich_own_fields @enrich_own_fields end |
#filter_tags ⇒ Array<String>
Returns Tags used for filtering feeds.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/update_feed_request.rb', line 26 def @filter_tags end |
#name ⇒ String
Returns Name of the feed.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/update_feed_request.rb', line 23 def name @name end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/update_feed_request.rb', line 43 def self.json_field_mappings { created_by_id: 'created_by_id', description: 'description', enrich_own_fields: 'enrich_own_fields', name: 'name', filter_tags: 'filter_tags', custom: 'custom' } end |