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