Class: SignalWire::REST::Namespaces::ChatResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- SignalWire::REST::Namespaces::ChatResource
- Defined in:
- lib/signalwire/rest/namespaces/chat.rb
Overview
Chat token generation.
Instance Method Summary collapse
- #create_token(**kwargs) ⇒ Object
-
#initialize(http) ⇒ ChatResource
constructor
A new instance of ChatResource.
Constructor Details
#initialize(http) ⇒ ChatResource
Returns a new instance of ChatResource.
8 9 10 |
# File 'lib/signalwire/rest/namespaces/chat.rb', line 8 def initialize(http) super(http, '/api/chat/tokens') end |
Instance Method Details
#create_token(**kwargs) ⇒ Object
12 13 14 |
# File 'lib/signalwire/rest/namespaces/chat.rb', line 12 def create_token(**kwargs) @http.post(@base_path, kwargs) end |