Class: GetStream::Generated::Models::CallType

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

Initialize with attributes



38
39
40
41
42
43
44
45
46
47
48
# File 'lib/getstream_ruby/generated/models/call_type.rb', line 38

def initialize(attributes = {})
  super(attributes)
  @app = attributes[:app] || attributes['app']
  @created_at = attributes[:created_at] || attributes['created_at']
  @id = attributes[:id] || attributes['id']
  @name = attributes[:name] || attributes['name']
  @recording_external_storage = attributes[:recording_external_storage] || attributes['recording_external_storage']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @notification_settings = attributes[:notification_settings] || attributes['notification_settings'] || nil
  @settings = attributes[:settings] || attributes['settings'] || nil
end

Instance Attribute Details

#appInteger



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

def app
  @app
end

#created_atDateTime



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

def created_at
  @created_at
end

#idInteger



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

def id
  @id
end

#nameString



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

def name
  @name
end

#notification_settingsNotificationSettings



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

def notification_settings
  @notification_settings
end

#recording_external_storageString



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

def recording_external_storage
  @recording_external_storage
end

#settingsCallSettings



35
36
37
# File 'lib/getstream_ruby/generated/models/call_type.rb', line 35

def settings
  @settings
end

#updated_atDateTime



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

def updated_at
  @updated_at
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/getstream_ruby/generated/models/call_type.rb', line 51

def self.json_field_mappings
  {
    app: 'app',
    created_at: 'created_at',
    id: 'id',
    name: 'name',
    recording_external_storage: 'recording_external_storage',
    updated_at: 'updated_at',
    notification_settings: 'notification_settings',
    settings: 'settings'
  }
end