Class: Moceansdk::Modules::Voice::McObject::Say
- Inherits:
-
AbstractMc
- Object
- AbstractMc
- Moceansdk::Modules::Voice::McObject::Say
- Defined in:
- lib/moceansdk/modules/voice/mc_object/say.rb
Instance Method Summary collapse
- #action ⇒ Object
- #barge_in=(param) ⇒ Object
- #clear_digit_cache=(param) ⇒ Object
-
#initialize(params = nil) ⇒ Say
constructor
A new instance of Say.
- #language=(param) ⇒ Object
- #required_key ⇒ Object
- #text=(param) ⇒ Object
Methods inherited from AbstractMc
Constructor Details
#initialize(params = nil) ⇒ Say
Returns a new instance of Say.
7 8 9 10 11 12 13 |
# File 'lib/moceansdk/modules/voice/mc_object/say.rb', line 7 def initialize(params = nil) super(params) if @params[:language].nil? @params[:language] = 'en-US' end end |
Instance Method Details
#action ⇒ Object
35 36 37 |
# File 'lib/moceansdk/modules/voice/mc_object/say.rb', line 35 def action 'say' end |
#barge_in=(param) ⇒ Object
23 24 25 |
# File 'lib/moceansdk/modules/voice/mc_object/say.rb', line 23 def (param) @params[:'barge-in'] = param end |
#clear_digit_cache=(param) ⇒ Object
27 28 29 |
# File 'lib/moceansdk/modules/voice/mc_object/say.rb', line 27 def clear_digit_cache=(param) @params[:'clear-digit-cache'] = param end |
#language=(param) ⇒ Object
15 16 17 |
# File 'lib/moceansdk/modules/voice/mc_object/say.rb', line 15 def language=(param) @params[:language] = param end |
#required_key ⇒ Object
31 32 33 |
# File 'lib/moceansdk/modules/voice/mc_object/say.rb', line 31 def required_key ['text', 'language'] end |
#text=(param) ⇒ Object
19 20 21 |
# File 'lib/moceansdk/modules/voice/mc_object/say.rb', line 19 def text=(param) @params[:text] = param end |