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) ⇒ OutputStream

Returns a new instance of OutputStream.



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

def initialize(audio_pitch: nil, audio_tempo: nil, audio_format: nil)
  @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.



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

Instance Method Details

#to_hObject



46
47
48
# File 'lib/typecast/models.rb', line 46

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