Module: IvonaSpeechCloud::Runner

Included in:
CreateSpeech, ListVoices
Defined in:
lib/ivona_speech_cloud/runner.rb

Instance Method Summary collapse

Instance Method Details

#inputHash

Returns:

  • (Hash)


12
13
14
# File 'lib/ivona_speech_cloud/runner.rb', line 12

def input
  @input ||= eval(input_class).new(options).params
end

#input_classString

Returns:

  • (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

#runHTTParty::Response

Returns:

  • (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