Class: GetStream::Generated::Models::CallActionOptions
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::CallActionOptions
show all
- Defined in:
- lib/getstream_ruby/generated/models/call_action_options.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 with attributes
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 35
def initialize(attributes = {})
super(attributes)
@duration = attributes[:duration] || attributes['duration'] || nil
@flag_reason = attributes[:flag_reason] || attributes['flag_reason'] || nil
@kick_reason = attributes[:kick_reason] || attributes['kick_reason'] || nil
@mute_audio = attributes[:mute_audio] || attributes['mute_audio'] || nil
@mute_video = attributes[:mute_video] || attributes['mute_video'] || nil
@reason = attributes[:reason] || attributes['reason'] || nil
@warning_text = attributes[:warning_text] || attributes['warning_text'] || nil
end
|
Instance Attribute Details
#duration ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 14
def duration
@duration
end
|
#flag_reason ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 17
def flag_reason
@flag_reason
end
|
#kick_reason ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 20
def kick_reason
@kick_reason
end
|
#mute_audio ⇒ Boolean
23
24
25
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 23
def mute_audio
@mute_audio
end
|
#mute_video ⇒ Boolean
26
27
28
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 26
def mute_video
@mute_video
end
|
#reason ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 29
def reason
@reason
end
|
#warning_text ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/call_action_options.rb', line 32
def warning_text
@warning_text
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/call_action_options.rb', line 47
def self.json_field_mappings
{
duration: 'duration',
flag_reason: 'flag_reason',
kick_reason: 'kick_reason',
mute_audio: 'mute_audio',
mute_video: 'mute_video',
reason: 'reason',
warning_text: 'warning_text'
}
end
|