Class: SignalWire::REST::Namespaces::ImportedNumbersResource

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

Overview

Import externally-hosted phone numbers.

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ ImportedNumbersResource

Returns a new instance of ImportedNumbersResource.



8
9
10
# File 'lib/signalwire/rest/namespaces/imported_numbers.rb', line 8

def initialize(http)
  super(http, '/api/relay/rest/imported_phone_numbers')
end

Instance Method Details

#create(**kwargs) ⇒ Object



12
13
14
# File 'lib/signalwire/rest/namespaces/imported_numbers.rb', line 12

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