Exception: Gtts::GttsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gtts/tts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



17
18
19
# File 'lib/gtts/tts.rb', line 17

def response
  @response
end

#ttsObject (readonly)

Returns the value of attribute tts.



17
18
19
# File 'lib/gtts/tts.rb', line 17

def tts
  @tts
end