Class: SignalWire::REST::Namespaces::ImportedNumbersResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- SignalWire::REST::Namespaces::ImportedNumbersResource
- Defined in:
- lib/signalwire/rest/namespaces/imported_numbers.rb
Overview
Import externally-hosted phone numbers.
Instance Method Summary collapse
- #create(**kwargs) ⇒ Object
-
#initialize(http) ⇒ ImportedNumbersResource
constructor
A new instance of ImportedNumbersResource.
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 |