Class: Typecast::Models::Output

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Output.



18
19
20
21
22
23
24
# File 'lib/typecast/models.rb', line 18

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

Instance Attribute Details

#audio_formatObject (readonly)

Returns the value of attribute audio_format.



16
17
18
# File 'lib/typecast/models.rb', line 16

def audio_format
  @audio_format
end

#audio_pitchObject (readonly)

Returns the value of attribute audio_pitch.



16
17
18
# File 'lib/typecast/models.rb', line 16

def audio_pitch
  @audio_pitch
end

#audio_tempoObject (readonly)

Returns the value of attribute audio_tempo.



16
17
18
# File 'lib/typecast/models.rb', line 16

def audio_tempo
  @audio_tempo
end

#target_lufsObject (readonly)

Returns the value of attribute target_lufs.



16
17
18
# File 'lib/typecast/models.rb', line 16

def target_lufs
  @target_lufs
end

#volumeObject (readonly)

Returns the value of attribute volume.



16
17
18
# File 'lib/typecast/models.rb', line 16

def volume
  @volume
end

Instance Method Details

#to_hObject



26
27
28
29
30
31
32
33
34
# File 'lib/typecast/models.rb', line 26

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