Class: GetStream::Generated::Models::ChannelDataUpdate

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

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/channel_data_update.rb', line 35

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
  @disabled = attributes[:disabled] || attributes['disabled'] || nil
  @frozen = attributes[:frozen] || attributes['frozen'] || nil
  @team = attributes[:team] || attributes['team'] || nil
  @config_overrides = attributes[:config_overrides] || attributes['config_overrides'] || nil
  @custom = attributes[:custom] || attributes['custom'] || nil
end

Instance Attribute Details

#auto_translation_enabledBoolean

Returns:



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

def auto_translation_enabled
  @auto_translation_enabled
end

#auto_translation_languageString

Returns:



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

def auto_translation_language
  @auto_translation_language
end

#config_overridesChannelConfig

Returns:



29
30
31
# File 'lib/getstream_ruby/generated/models/channel_data_update.rb', line 29

def config_overrides
  @config_overrides
end

#customObject

Returns:



32
33
34
# File 'lib/getstream_ruby/generated/models/channel_data_update.rb', line 32

def custom
  @custom
end

#disabledBoolean

Returns:



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

def disabled
  @disabled
end

#frozenBoolean

Returns:



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

def frozen
  @frozen
end

#teamString

Returns:



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

def team
  @team
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/getstream_ruby/generated/models/channel_data_update.rb', line 47

def self.json_field_mappings
  {
    auto_translation_enabled: 'auto_translation_enabled',
    auto_translation_language: 'auto_translation_language',
    disabled: 'disabled',
    frozen: 'frozen',
    team: 'team',
    config_overrides: 'config_overrides',
    custom: 'custom'
  }
end