Class: Typecast::Models::OutputStream

Inherits:
Object
  • Object
show all
Defined in:
lib/typecast/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(audio_pitch: nil, audio_tempo: nil, audio_format: nil, target_lufs: nil) ⇒ OutputStream

Returns a new instance of OutputStream.



40
41
42
43
44
45
# File 'lib/typecast/models.rb', line 40

def initialize(audio_pitch: nil, audio_tempo: nil, audio_format: nil, target_lufs: nil)
  @audio_pitch = audio_pitch
  @audio_tempo = audio_tempo
  @audio_format = audio_format
  @target_lufs = target_lufs
end

Instance Attribute Details

#audio_formatObject (readonly)

Returns the value of attribute audio_format.



38
39
40
# File 'lib/typecast/models.rb', line 38

def audio_format
  @audio_format
end

#audio_pitchObject (readonly)

Returns the value of attribute audio_pitch.



38
39
40
# File 'lib/typecast/models.rb', line 38

def audio_pitch
  @audio_pitch
end

#audio_tempoObject (readonly)

Returns the value of attribute audio_tempo.



38
39
40
# File 'lib/typecast/models.rb', line 38

def audio_tempo
  @audio_tempo
end

#target_lufsObject (readonly)

Returns the value of attribute target_lufs.



38
39
40
# File 'lib/typecast/models.rb', line 38

def target_lufs
  @target_lufs
end

Instance Method Details

#to_hObject



47
48
49
50
51
52
53
54
# File 'lib/typecast/models.rb', line 47

def to_h
  Models.compact(
    audio_pitch: audio_pitch,
    audio_tempo: audio_tempo,
    audio_format: audio_format,
    target_lufs: target_lufs
  )
end