Class: Moceansdk::Modules::Voice::McObject::Say

Inherits:
AbstractMc
  • Object
show all
Defined in:
lib/moceansdk/modules/voice/mc_object/say.rb

Instance Method Summary collapse

Methods inherited from AbstractMc

#get_request_data

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

#actionObject



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 barge_in=(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_keyObject



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