Skip to content

Commit

Permalink
typeParam
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-plivo committed Jan 8, 2024
1 parent e18f672 commit 86f2c2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/plivo/resources/calls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ def speak(text, options = nil)
params[:legs] = options[:legs]
end

if options.key?(:type) &&
valid_param?(:type, options[:type],
[String, Symbol], true, %w[text ssml])
params[:type] = options[:type]
end

%i[loop mix].each do |param|
if options.key?(param) &&
valid_param?(param, options[param], [TrueClass, FalseClass], true)
Expand Down

0 comments on commit 86f2c2c

Please sign in to comment.