Class: GetStream::Generated::Models::RawRecordSettings

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

Initialize with attributes



20
21
22
23
24
# File 'lib/getstream_ruby/generated/models/raw_record_settings.rb', line 20

def initialize(attributes = {})
  super(attributes)
  @mode = attributes.fetch(:mode) { attributes.fetch('mode', nil) }
  @audio_only = attributes.fetch(:audio_only) { attributes.fetch('audio_only', nil) }
end

Instance Attribute Details

#audio_only ⇒ Boolean

Returns:

  • (Boolean)


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

def audio_only
  @audio_only
end

#mode ⇒ FeatureActivationMode

Returns Whether a call feature is available, disabled, or turned on automatically.

Returns:



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

def mode
  @mode
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



27
28
29
30
31
32
# File 'lib/getstream_ruby/generated/models/raw_record_settings.rb', line 27

def self.json_field_mappings
  {
    mode: 'mode',
    audio_only: 'audio_only'
  }
end