Module: IvonaSpeechCloud::Runner
- Included in:
- CreateSpeech, ListVoices
- Defined in:
- lib/ivona_speech_cloud/runner.rb
Instance Method Summary collapse
Instance Method Details
#input ⇒ Hash
12 13 14 |
# File 'lib/ivona_speech_cloud/runner.rb', line 12 def input @input ||= eval(input_class).new().params end |
#input_class ⇒ String
17 18 19 20 |
# File 'lib/ivona_speech_cloud/runner.rb', line 17 def input_class caller = self.class.to_s.split("::").last @input_class = "Input::#{caller}" end |
#run ⇒ HTTParty::Response
5 6 7 8 9 |
# File 'lib/ivona_speech_cloud/runner.rb', line 5 def run @client.path = @path @client.body = input perform_post end |