Class: SignalWire::REST::Namespaces::SipProfileResource

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

Overview

Project SIP profile (singleton resource).

Instance Method Summary collapse

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

#getObject



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