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
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 35
def initialize(attributes = {})
super(attributes)
@description = attributes.fetch(:description) { attributes.fetch('description', nil) }
@name = attributes.fetch(:name) { attributes.fetch('name', nil) }
@visibility = attributes.fetch(:visibility) { attributes.fetch('visibility', nil) }
@filter_tags = attributes.fetch(:filter_tags) { attributes.fetch('filter_tags', nil) }
@members = attributes.fetch(:members) { attributes.fetch('members', nil) }
@custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) }
@location = attributes.fetch(:location) { attributes.fetch('location', 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
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 32
def location
@location
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
|
Returns Who can see and follow a feed.
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
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/getstream_ruby/generated/models/feed_input.rb', line 47
def self.json_field_mappings
{
description: 'description',
name: 'name',
visibility: 'visibility',
filter_tags: 'filter_tags',
members: 'members',
custom: 'custom',
location: 'location'
}
end
|