Class: GetStream::Generated::Models::UpdateFeedRequest

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

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @created_by_id = attributes[:created_by_id] || attributes['created_by_id'] || nil
  @description = attributes[:description] || attributes['description'] || 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_idString



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

def created_by_id
  @created_by_id
end

#customObject



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

def custom
  @custom
end

#descriptionString



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

def description
  @description
end

#filter_tagsArray<String>



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

def filter_tags
  @filter_tags
end

#nameString



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

def name
  @name
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_feed_request.rb', line 39

def self.json_field_mappings
  {
    created_by_id: 'created_by_id',
    description: 'description',
    name: 'name',
    filter_tags: 'filter_tags',
    custom: 'custom'
  }
end