Class: FSR::App::Say
- Inherits:
-
Application
- Object
- Application
- FSR::App::Say
- Defined in:
- lib/fsr/app/say.rb
Instance Attribute Summary collapse
- #message ⇒ Object readonly
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(message, opts = {}) ⇒ Say
constructor
A new instance of Say.
Methods inherited from Application
#app_name, #raw, #sendmsg, #to_s
Constructor Details
#initialize(message, opts = {}) ⇒ Say
Returns a new instance of Say.
9 10 11 12 13 14 15 16 |
# File 'lib/fsr/app/say.rb', line 9 def initialize(, opts = {}) # wav file you wish to play, full path @message = @language = opts[:language] || "en" @data_type = opts[:data_type] || "number" @say_method = opts[:say_method] || "pronounced" @gender = opts[:gender] || "feminine" end |
Instance Attribute Details
#message ⇒ Object (readonly)
7 8 9 |
# File 'lib/fsr/app/say.rb', line 7 def @message end |
Instance Method Details
#arguments ⇒ Object
18 19 20 |
# File 'lib/fsr/app/say.rb', line 18 def arguments [@language, @data_type, @say_method, @gender, @message] end |