Class: SignalWire::REST::Namespaces::SipProfileResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- SignalWire::REST::Namespaces::SipProfileResource
- Defined in:
- lib/signalwire/rest/namespaces/sip_profile.rb
Overview
Project SIP profile (singleton resource).
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(http) ⇒ SipProfileResource
constructor
A new instance of SipProfileResource.
- #update(**kwargs) ⇒ Object
Constructor Details
#initialize(http) ⇒ SipProfileResource
Returns a new instance of SipProfileResource.
8 9 10 |
# File 'lib/signalwire/rest/namespaces/sip_profile.rb', line 8 def initialize(http) super(http, '/api/relay/rest/sip_profile') end |
Instance Method Details
#get ⇒ Object
12 13 14 |
# File 'lib/signalwire/rest/namespaces/sip_profile.rb', line 12 def get @http.get(@base_path) end |
#update(**kwargs) ⇒ Object
16 17 18 |
# File 'lib/signalwire/rest/namespaces/sip_profile.rb', line 16 def update(**kwargs) @http.put(@base_path, kwargs) end |