Class: GetStream::Generated::Models::ChannelInput
- Defined in:
- lib/getstream_ruby/generated/models/channel_input.rb
Instance Attribute Summary collapse
-
#auto_translation_enabled ⇒ Boolean
Enable or disable auto translation.
-
#auto_translation_language ⇒ String
Language (or comma-separated list of languages) to translate to when auto translation is active.
-
#config_overrides ⇒ ChannelConfigOverrides
Channel configuration overrides.
-
#created_by ⇒ UserRequest
User request object.
- #created_by_id ⇒ String
- #custom ⇒ Object
- #disabled ⇒ Boolean
- #filter_tags ⇒ Array<String>
-
#frozen ⇒ Boolean
Freeze or unfreeze the channel.
- #invites ⇒ Array<ChannelMemberRequest>
- #members ⇒ Array<ChannelMemberRequest>
-
#team ⇒ String
Team the channel belongs to (if multi-tenant mode is enabled).
- #truncated_by_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ChannelInput
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ChannelInput
Initialize with attributes
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 53 def initialize(attributes = {}) super(attributes) @auto_translation_enabled = attributes[:auto_translation_enabled] || attributes['auto_translation_enabled'] || nil @auto_translation_language = attributes[:auto_translation_language] || attributes['auto_translation_language'] || nil @created_by_id = attributes[:created_by_id] || attributes['created_by_id'] || nil @disabled = attributes[:disabled] || attributes['disabled'] || nil @frozen = attributes[:frozen] || attributes['frozen'] || nil @team = attributes[:team] || attributes['team'] || nil @truncated_by_id = attributes[:truncated_by_id] || attributes['truncated_by_id'] || nil @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] || nil @invites = attributes[:invites] || attributes['invites'] || nil @members = attributes[:members] || attributes['members'] || nil @config_overrides = attributes[:config_overrides] || attributes['config_overrides'] || nil @created_by = attributes[:created_by] || attributes['created_by'] || nil @custom = attributes[:custom] || attributes['custom'] || nil end |
Instance Attribute Details
#auto_translation_enabled ⇒ Boolean
Returns Enable or disable auto translation.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 14 def auto_translation_enabled @auto_translation_enabled end |
#auto_translation_language ⇒ String
Returns Language (or comma-separated list of languages) to translate to when auto translation is active.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 17 def auto_translation_language @auto_translation_language end |
#config_overrides ⇒ ChannelConfigOverrides
Returns Channel configuration overrides.
44 45 46 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 44 def config_overrides @config_overrides end |
#created_by ⇒ UserRequest
Returns User request object.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 47 def created_by @created_by end |
#created_by_id ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 20 def created_by_id @created_by_id end |
#custom ⇒ Object
50 51 52 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 50 def custom @custom end |
#disabled ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 23 def disabled @disabled end |
#filter_tags ⇒ Array<String>
35 36 37 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 35 def @filter_tags end |
#frozen ⇒ Boolean
Returns Freeze or unfreeze the channel.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 26 def frozen @frozen end |
#invites ⇒ Array<ChannelMemberRequest>
38 39 40 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 38 def invites @invites end |
#members ⇒ Array<ChannelMemberRequest>
41 42 43 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 41 def members @members end |
#team ⇒ String
Returns Team the channel belongs to (if multi-tenant mode is enabled).
29 30 31 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 29 def team @team end |
#truncated_by_id ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 32 def truncated_by_id @truncated_by_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/getstream_ruby/generated/models/channel_input.rb', line 71 def self.json_field_mappings { auto_translation_enabled: 'auto_translation_enabled', auto_translation_language: 'auto_translation_language', created_by_id: 'created_by_id', disabled: 'disabled', frozen: 'frozen', team: 'team', truncated_by_id: 'truncated_by_id', filter_tags: 'filter_tags', invites: 'invites', members: 'members', config_overrides: 'config_overrides', created_by: 'created_by', custom: 'custom' } end |