Exception: Gtts::GttsError
- Inherits:
-
StandardError
- Object
- StandardError
- Gtts::GttsError
- Defined in:
- lib/gtts/tts.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#tts ⇒ Object
readonly
Returns the value of attribute tts.
Instance Method Summary collapse
-
#initialize(msg = nil, tts: nil, response: nil) ⇒ GttsError
constructor
A new instance of GttsError.
Constructor Details
#initialize(msg = nil, tts: nil, response: nil) ⇒ GttsError
Returns a new instance of GttsError.
19 20 21 22 23 24 |
# File 'lib/gtts/tts.rb', line 19 def initialize(msg = nil, tts: nil, response: nil) @tts = tts @response = response @msg = msg || infer_msg super(@msg) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
17 18 19 |
# File 'lib/gtts/tts.rb', line 17 def response @response end |
#tts ⇒ Object (readonly)
Returns the value of attribute tts.
17 18 19 |
# File 'lib/gtts/tts.rb', line 17 def tts @tts end |