Class: IvonaSpeechCloud::Input::ListVoices
- Inherits:
-
Object
- Object
- IvonaSpeechCloud::Input::ListVoices
- Includes:
- CommonDefaults
- Defined in:
- lib/ivona_speech_cloud/input.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ ListVoices
constructor
A new instance of ListVoices.
- #params ⇒ Object
Methods included from CommonDefaults
Constructor Details
#initialize(options) ⇒ ListVoices
Returns a new instance of ListVoices.
96 97 98 |
# File 'lib/ivona_speech_cloud/input.rb', line 96 def initialize() @options = .first.is_a?(Hash) ? .first : {} end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
92 93 94 |
# File 'lib/ivona_speech_cloud/input.rb', line 92 def @options end |
Instance Method Details
#params ⇒ Object
100 101 102 103 104 105 106 |
# File 'lib/ivona_speech_cloud/input.rb', line 100 def params { "Voice" => { "Language" => language }.merge() }.to_json end |