Class: GetStream::Generated::Models::EncodingProfile
- Defined in:
- lib/getstream_ruby/generated/models/encoding_profile.rb
Instance Attribute Summary collapse
- #avg_send_kbps ⇒ Integer
- #codec ⇒ String
- #encoder_impl ⇒ String
- #fps_p10 ⇒ Integer
- #fps_p50 ⇒ Integer
- #getstats_snapshots ⇒ Integer
- #hardware_encode ⇒ Boolean
- #ladder_type ⇒ String
- #power_efficient ⇒ Boolean
- #quality_limitation_durations_s ⇒ Hash<String, Integer>
- #quality_limitation_samples ⇒ Hash<String, Integer>
- #resolution ⇒ String
- #simulcast_layers ⇒ Integer
- #source_file ⇒ String
- #svc_modes ⇒ Array<String>
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ EncodingProfile
constructor
Initialize with attributes.
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_kbps ⇒ Integer
29 30 31 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 29 def avg_send_kbps @avg_send_kbps end |
#codec ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 32 def codec @codec end |
#encoder_impl ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 35 def encoder_impl @encoder_impl end |
#fps_p10 ⇒ Integer
38 39 40 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 38 def fps_p10 @fps_p10 end |
#fps_p50 ⇒ Integer
41 42 43 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 41 def fps_p50 @fps_p50 end |
#getstats_snapshots ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 14 def getstats_snapshots @getstats_snapshots end |
#hardware_encode ⇒ Boolean
44 45 46 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 44 def hardware_encode @hardware_encode end |
#ladder_type ⇒ String
47 48 49 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 47 def ladder_type @ladder_type end |
#power_efficient ⇒ Boolean
50 51 52 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 50 def power_efficient @power_efficient end |
#quality_limitation_durations_s ⇒ 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_samples ⇒ 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 |
#resolution ⇒ String
53 54 55 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 53 def resolution @resolution end |
#simulcast_layers ⇒ Integer
56 57 58 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 56 def simulcast_layers @simulcast_layers end |
#source_file ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/encoding_profile.rb', line 17 def source_file @source_file end |
#svc_modes ⇒ 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_mappings ⇒ Object
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 |