Class: SignalWire::REST::Namespaces::CompatTokens

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/signalwire/rest/namespaces/compat.rb

Overview

Compat API token management.

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from SignalWire::REST::BaseResource

Instance Method Details

#create(**kwargs) ⇒ Object



199
# File 'lib/signalwire/rest/namespaces/compat.rb', line 199

def create(**kwargs) = @http.post(@base_path, kwargs)

#delete(token_id) ⇒ Object



201
# File 'lib/signalwire/rest/namespaces/compat.rb', line 201

def delete(token_id) = @http.delete(_path(token_id))

#update(token_id, **kwargs) ⇒ Object



200
# File 'lib/signalwire/rest/namespaces/compat.rb', line 200

def update(token_id, **kwargs) = @http.patch(_path(token_id), kwargs)