Class: GetStream::Generated::Models::EncodingProfile

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

Initialize with attributes



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 59

def initialize(attributes = {})
  super(attributes)
  @getstats_snapshots = attributes[:getstats_snapshots] || attributes['getstats_snapshots']
  @source_file = attributes[:source_file] || attributes['source_file']
  @svc_modes = attributes[:svc_modes] || attributes['svc_modes']
  @quality_limitation_durations_s = attributes[:quality_limitation_durations_s] || attributes['quality_limitation_durations_s']
  @quality_limitation_samples = attributes[:quality_limitation_samples] || attributes['quality_limitation_samples']
  @avg_send_kbps = attributes[:avg_send_kbps] || attributes['avg_send_kbps'] || nil
  @codec = attributes[:codec] || attributes['codec'] || nil
  @encoder_impl = attributes[:encoder_impl] || attributes['encoder_impl'] || nil
  @fps_p10 = attributes[:fps_p10] || attributes['fps_p10'] || nil
  @fps_p50 = attributes[:fps_p50] || attributes['fps_p50'] || nil
  @hardware_encode = attributes[:hardware_encode] || attributes['hardware_encode'] || nil
  @ladder_type = attributes[:ladder_type] || attributes['ladder_type'] || nil
  @power_efficient = attributes[:power_efficient] || attributes['power_efficient'] || nil
  @resolution = attributes[:resolution] || attributes['resolution'] || nil
  @simulcast_layers = attributes[:simulcast_layers] || attributes['simulcast_layers'] || nil
end

Instance Attribute Details

#avg_send_kbpsInteger

Returns:

  • (Integer)


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

def avg_send_kbps
  @avg_send_kbps
end

#codecString

Returns:

  • (String)


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

def codec
  @codec
end

#encoder_implString

Returns:

  • (String)


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

def encoder_impl
  @encoder_impl
end

#fps_p10Integer

Returns:

  • (Integer)


38
39
40
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 38

def fps_p10
  @fps_p10
end

#fps_p50Integer

Returns:

  • (Integer)


41
42
43
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 41

def fps_p50
  @fps_p50
end

#getstats_snapshotsInteger

Returns:

  • (Integer)


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

def getstats_snapshots
  @getstats_snapshots
end

#hardware_encodeBoolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 44

def hardware_encode
  @hardware_encode
end

#ladder_typeString

Returns:

  • (String)


47
48
49
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 47

def ladder_type
  @ladder_type
end

#power_efficientBoolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 50

def power_efficient
  @power_efficient
end

#quality_limitation_durations_sHash<String, Integer>

Returns:

  • (Hash<String, Integer>)


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

def quality_limitation_durations_s
  @quality_limitation_durations_s
end

#quality_limitation_samplesHash<String, Integer>

Returns:

  • (Hash<String, Integer>)


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

def quality_limitation_samples
  @quality_limitation_samples
end

#resolutionString

Returns:

  • (String)


53
54
55
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 53

def resolution
  @resolution
end

#simulcast_layersInteger

Returns:

  • (Integer)


56
57
58
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 56

def simulcast_layers
  @simulcast_layers
end

#source_fileString

Returns:

  • (String)


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

def source_file
  @source_file
end

#svc_modesArray<String>

Returns:

  • (Array<String>)


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

def svc_modes
  @svc_modes
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 79

def self.json_field_mappings
  {
    getstats_snapshots: 'getstats_snapshots',
    source_file: 'source_file',
    svc_modes: 'svc_modes',
    quality_limitation_durations_s: 'quality_limitation_durations_s',
    quality_limitation_samples: 'quality_limitation_samples',
    avg_send_kbps: 'avg_send_kbps',
    codec: 'codec',
    encoder_impl: 'encoder_impl',
    fps_p10: 'fps_p10',
    fps_p50: 'fps_p50',
    hardware_encode: 'hardware_encode',
    ladder_type: 'ladder_type',
    power_efficient: 'power_efficient',
    resolution: 'resolution',
    simulcast_layers: 'simulcast_layers'
  }
end