Class: Nexmo::Voice::Ttses
- Inherits:
-
Object
- Object
- Nexmo::Voice::Ttses
- Defined in:
- lib/nexmo/voice/ttses.rb
Constant Summary collapse
- RELATIVE_URL =
'/tts/json'.freeze
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #create(entity = {}) ⇒ Object
-
#initialize(client = nil) ⇒ Ttses
constructor
A new instance of Ttses.
Constructor Details
#initialize(client = nil) ⇒ Ttses
Returns a new instance of Ttses.
7 8 9 10 |
# File 'lib/nexmo/voice/ttses.rb', line 7 def initialize(client = nil) raise "Can't create a call without Client" unless client @client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
5 6 7 |
# File 'lib/nexmo/voice/ttses.rb', line 5 def client @client end |
Instance Method Details
#create(entity = {}) ⇒ Object
12 13 14 |
# File 'lib/nexmo/voice/ttses.rb', line 12 def create(entity = {}) @client.get(self, entity) end |