Class: GetStream::Generated::Models::FeedInput
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::FeedInput
show all
- Defined in:
- lib/getstream_ruby/generated/models/feed_input.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 = {}) ⇒ FeedInput
Initialize with attributes
32
33
34
35
36
37
38
39
40
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 32
def initialize(attributes = {})
super(attributes)
@description = attributes[:description] || attributes['description'] || nil
@name = attributes[:name] || attributes['name'] || nil
@visibility = attributes[:visibility] || attributes['visibility'] || nil
@filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil
@members = attributes[:members] || attributes['members'] || nil
@custom = attributes[:custom] || attributes['custom'] || nil
end
|
Instance Attribute Details
#custom ⇒ Object
29
30
31
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 29
def custom
@custom
end
|
#description ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 14
def description
@description
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 23
def filter_tags
@filter_tags
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 26
def members
@members
end
|
#name ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 17
def name
@name
end
|
#visibility ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 20
def visibility
@visibility
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/feed_input.rb', line 43
def self.json_field_mappings
{
description: 'description',
name: 'name',
visibility: 'visibility',
filter_tags: 'filter_tags',
members: 'members',
custom: 'custom'
}
end
|